Instance Method

runModal()

Displays the receiver and begins the modal loop using the shared NSPrintInfo object.

Declaration

func runModal() -> Int

Return Value

NSCancelButton if the user clicks the Cancel button; otherwise, NSOKButton.

Discussion

The receiver’s values are recorded in the shared NSPrintInfo object.

See Also

Running a Page Setup Dialog

func beginSheet(with: NSPrintInfo, modalFor: NSWindow, delegate: Any?, didEnd: Selector?, contextInfo: UnsafeMutableRawPointer?)

Presents a page setup sheet for the given NSPrintInfo object, document-modal relative to the given window.

func runModal(with: NSPrintInfo)

Displays the receiver and begins the modal loop using the given NSPrintInfo object.