Contents

runModal(with:)

Displays the 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