CFPreferencesCopyAppValue(_:_:)
Obtains a preference value for the specified key and application.
Declaration
func CFPreferencesCopyAppValue(_ key: CFString, _ applicationID: CFString) -> CFPropertyList?Parameters
- key:
The preference key whose value to obtain.
- applicationID:
The identifier of the application whose preferences to search, typically Kcfpreferencescurrentapplication. Do not pass
NULLor Kcfpreferencesanyapplication. Takes the form of a Java package name,com.foosoft.
Return Value
The preference data for the specified key and application. If no value was located, returns NULL. Ownership follows the The Create Rule.
Discussion
Note that values returned from this function are immutable, even if you have recently set the value using a mutable object.