<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDocument/printShowingPrintPanel:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDocument(im)printShowingPrintPanel:"
  },
  "title" : "printShowingPrintPanel:"
}
-->

# printShowingPrintPanel:

Prints the current document’s data.

```
- (void) printShowingPrintPanel:(BOOL) flag;
```

## Discussion

Overridden by subclasses to print the current document’s (the receiver’s) data; if `flag` is <doc://com.apple.documentation/documentation/Swift/true>, the implementation should first display the Print panel. This method is typically invoked by `printDocument:` with an argument of <doc://com.apple.documentation/documentation/Swift/true>. The default implementation does nothing. If there is any printing information other than that encoded in the receiver’s `NSPrintInfo` object, subclasses should get it here.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)