A set of methods that a print panel object can use to get information from a printing accessory controller.


protocol NSPrintPanelAccessorizing


A printing accessory controller manages a custom print panel accessory view and used to coordinate print settings. If you are implementing a custom printing accessory view, your controller must support this protocol. Implementation of only one method in the protocol is actually required. The other method is considered optional and is used to support the print panel’s built-in preview facilities.


Responding to Being Loaded from a Nib File

func localizedSummaryItems() -> [[NSPrintPanel.AccessorySummaryKey : String]]

Returns an array of dictionaries containing the localized user setting summary strings.


func keyPathsForValuesAffectingPreview() -> Set<String>

Returns a set of strings identifying the key paths for any properties that might affect the built-in print preview. (optional)

struct NSPrintPanel.AccessorySummaryKey

These keys must be included in the dictionaries returned by the localizedSummaryItems() method.

See Also

Print and PDF Panels

class NSPDFPanel

A Save or Export as PDF panel that’s consistent with the macOS user interface.