Contents

PMPrintSettingsGetValue(_:_:_:)

Obtains the value of a setting in a print settings object.

Declaration

func PMPrintSettingsGetValue(_ printSettings: PMPrintSettings, _ key: CFString, _ value: UnsafeMutablePointer<Unmanaged<CFTypeRef>?>) -> OSStatus

Parameters

  • 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