A mutable dictionary containing the print settings from Core Printing.
- macOS 10.5+
You can use this property to get and set values from the system print settings. The keys in the dictionary represent the values returned by the Core Printing function
PMPrint. They correspond to the settings currently in the print panel and include everything from custom values set by your accessory panels to values provided by the printer driver’s print dialog extension.
Adding keys to the dictionary is equivalent to calling the Core Printing function
PMPrint. Your new keys are added to the current print settings and are saved with any user preset files generated by the macOS printing system. Because the print settings are stored in a property list, any values you add to the dictionary must correspond to scalar types such as strings, numbers, dates, booleans, and data objects or collection types such as dictionaries and arrays.
Other parts of the printing system use key strings like
com to identify print settings. Cocoa replaces the periods in such strings with underscores. Thus, the preceding key string would be
com instead. If you use reverse-DNS style key strings for your custom attributes, you should follow the same convention of using underscore characters instead of periods.