Instance Method

runModal()

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

Declaration

func runModal() -> Int

Return Value

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

Discussion

This method uses the printing information associated with the current printing operation.

See Also

Running the Panel

func runModal(with: NSPrintInfo) -> Int

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