Instance Method

runModal(with:)

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

Declaration

func runModal(with printInfo: NSPrintInfo) -> Int

Parameters

printInfo

The NSPrintInfo object to use.

Return Value

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

Discussion

The receiver’s values are recorded in printInfo.

See Also

Related Symbols

func runModal()

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