Contents

SCPreferencesGetValue(_:_:)

Retrieves the value associated with the specified preference key.

Declaration

func SCPreferencesGetValue(_ prefs: SCPreferences, _ key: CFString) -> CFPropertyList?

Parameters

  • prefs:

    The preferences session.

  • key:

    The preference key.

Return Value

The value associated with the specified preference key (can be NULL if no value exists).

Discussion

To avoid inadvertantly reading stale data, first call SCPreferencesLock(_:_:) before calling this function.

See Also

Adding, Getting, and Removing Values