PMPrintSettingsGetValue(_:_:_:)
Obtains the value of a setting in a print settings object.
Declaration
func PMPrintSettingsGetValue(_ printSettings: PMPrintSettings, _ key: CFString, _ value: UnsafeMutablePointer<Unmanaged<CFTypeRef>?>) -> OSStatusParameters
- printSettings:
The print settings object you want to access.
- key:
A string constant that specifies the key for the desired setting. Some keys are currently defined in
PMTicket.h; other keys are user-defined. - value:
A pointer to your Core Foundation variable. On return, the variable refers to a Core Foundation object that corresponds to the specified key. If no corresponding object exists, the variable is set to
NULL.
Return Value
A result code. See Result Codes.
Discussion
This function, together with the function PMPrintSettingsSetValue, makes it possible to access print settings directly.
See Also
Accessing Data in Print Settings Objects
PMGetFirstPage(_:_:)PMSetFirstPage(_:_:_:)PMGetLastPage(_:_:)PMSetLastPage(_:_:_:)PMGetPageRange(_:_:_:)PMSetPageRange(_:_:_:)PMPrintSettingsGetJobName(_:_:)PMPrintSettingsSetJobName(_:_:)PMGetCopies(_:_:)PMSetCopies(_:_:_:)PMGetCollate(_:_:)PMSetCollate(_:_:)PMGetDuplex(_:_:)PMSetDuplex(_:_:)PMPrintSettingsSetValue(_:_:_:_:)PMPrintSettingsCopyAsDictionary(_:_:)PMPrintSettingsCopyKeys(_:_:)