Prints the document.
- macOS 10.4+
The print settings dictionary to use.
A Boolean value indicating whether the print panel is shown.
The delegate to which the selector message is sent.
The selector of the message sent to the delegate.
Object passed with the callback to provide any additional context information.
If showing of the print panel is specified by
show, the method presents it first and prints only if the user approves the panel. The
NSPrint attributes in the passed-in
did to the
delegate, with the
context as the last argument. The method selected by
did must have the same signature as:
The default implementation of this method invokes
nil is returned it presents the error to the user in a document-modal panel before messaging the delegate. Otherwise it invokes
For backward binary compatibility with OS X v10.3 and earlier, the default implementation of this method invokes