Contents

PMPrintSettingsCopyKeys(_:_:)

Obtains the keys for items in a print settings object.

Declaration

func PMPrintSettingsCopyKeys(_ printSettings: PMPrintSettings, _ settingsKeys: UnsafeMutablePointer<Unmanaged<CFArray>?>) -> OSStatus

Parameters

  • 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 PMPrintSettingsGetValue to obtain a value. You are responsible for releasing the array. If an error occurs, the variable is set to NULL.

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