Instance Method

runModal(with:)

Displays the receiver’s Print panel and runs the modal loop using the specified printing information.

Declaration

func runModal(with printInfo: NSPrintInfo) -> Int

Parameters

printInfo

The printing information to use while displaying the Print panel.

Return Value

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

See Also

Running the Panel

func runModal() -> Int

Displays the receiver's Print panel and begins the modal loop.