Instance Method

printDocument:

Prints the receiver in response to the user choosing the Print menu command.

Declaration

- (IBAction)printDocument:(id)sender;

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 printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:.

See Also

Handling User Actions

- runPageLayout:

The action method invoked in the receiver as first responder when the user chooses the Page Setup menu command.

- revertDocumentToSaved:

The action of the File menu item Revert in a document-based app.

- saveDocument:

The action method invoked in the receiver as first responder when the user chooses the Save menu command.

- saveDocumentAs:

The action method invoked in the receiver as first responder when the user chooses the Save As menu command.

- saveDocumentTo:

The action method invoked in the receiver as first responder when the user chooses the Save To menu command.