printDocument(_:)
Prints the receiver in response to the user choosing the Print menu command.
Declaration
@IBAction func printDocument(_ sender: Any?)Parameters
- sender:
The control sending the message.
Discussion
An NSDocument object receives this action message as it travels up the responder chain. The default implementation invokes print(withSettings:showPrintPanel:delegate:didPrint:contextInfo:).