NSPrintPanel
The Print panel that queries the user for information about a print job.
Declaration
@MainActor class NSPrintPanelOverview
A Print panel may let the user select the range of pages to print and the number of copies before executing the Print command. Print panels can display a simplified interface when printing certain types of data. For example, the panel can display a list of print-setting presets, which lets the user enable print settings in groups as opposed to individually. Assigning an appropriate string to the jobStyleHint property activates the simplified interface and identifies which presets to display.
For design guidance, see Human Interface Guidelines.
Topics
Customizing the Panel
jobStyleHintNSPrintPanel.JobStyleHintoptionsNSPrintPanel.OptionsdefaultButtonTitle()setDefaultButtonTitle(_:)helpAnchor
Managing Accessory Views
addAccessoryController(_:)removeAccessoryController(_:)NSPrintPanelAccessorizingaccessoryControllers
Running the Panel
beginSheet(using:on:completionHandler:)beginSheet(with:modalFor:delegate:didEnd:contextInfo:)runModal()runModal(with:)