PMPrintSettingsCopyKeys(_:_:)
Obtains the keys for items in a print settings object.
Declaration
func PMPrintSettingsCopyKeys(_ printSettings: PMPrintSettings, _ settingsKeys: UnsafeMutablePointer<Unmanaged<CFArray>?>) -> OSStatusParameters
- printSettings:
The print settings object with the desired keys.
- settingsKeys:
A pointer to your Cfarray variable. On return, the variable refers to a Core Foundation array that contains the keys for items in the specified print settings object. Each of these keys may be passed to the function
PMPrintSettingsGetValueto obtain a value. You are responsible for releasing the array. If an error occurs, the variable is set toNULL.
Return Value
A result code. See Result Codes.
Discussion
This function provides an array of the keys in a print settings object. You could get the values for the keys in the array with PMPrintSettingsGetValue(_:_:_:), or use the keys to look up the values in the dictionary returned by PMPrintSettingsCopyAsDictionary(_:_:).
See Also
Accessing Data in Print Settings Objects
PMGetFirstPage(_:_:)PMSetFirstPage(_:_:_:)PMGetLastPage(_:_:)PMSetLastPage(_:_:_:)PMGetPageRange(_:_:_:)PMSetPageRange(_:_:_:)PMPrintSettingsGetJobName(_:_:)PMPrintSettingsSetJobName(_:_:)PMGetCopies(_:_:)PMSetCopies(_:_:_:)PMGetCollate(_:_:)PMSetCollate(_:_:)PMGetDuplex(_:_:)PMSetDuplex(_:_:)PMPrintSettingsGetValue(_:_:_:)PMPrintSettingsSetValue(_:_:_:_:)PMPrintSettingsCopyAsDictionary(_:_:)