runPageLayout(_:)
The action method invoked in the receiver as first responder when the user chooses the Page Setup menu command.
Declaration
@IBAction func runPageLayout(_ sender: Any?)Parameters
- sender:
The control sending the message.
Discussion
The default implementation invokes runModalPageLayout(with:delegate:didRun:contextInfo:) with the document’s current NSPrintInfo object as argument; if the user clicks the OK button and the document authorizes changes to its printing information (shouldChangePrintInfo(_:)), the method sets the document’s new NSPrintInfo object and increments the document’s change count.