Function

CFPreferencesCopyKeyList

Constructs and returns the list of all keys set in the specified domain.

Declaration

CFArrayRef CFPreferencesCopyKeyList(CFStringRef applicationID, CFStringRef userName, CFStringRef hostName);

Parameters

applicationID

The ID of the application whose preferences to search. Takes the form of a Java package name, com.foosoft.

userName

kCFPreferencesCurrentUser to search the current-user domain, otherwise kCFPreferencesAnyUser to search the any-user domain.

hostName

kCFPreferencesCurrentHost to search the current-host domain, otherwise kCFPreferencesAnyHost to search the any-host domain.

Return Value

The list of keys. Ownership follows the The Create Rule.

See Also

Getting Preference Values

CFPreferencesCopyAppValue

Obtains a preference value for the specified key and application.

CFPreferencesCopyMultiple

Returns a dictionary containing preference values for multiple keys.

CFPreferencesCopyValue

Returns a preference value for a given domain.

CFPreferencesGetAppBooleanValue

Convenience function that directly obtains a Boolean preference value for the specified key.

CFPreferencesGetAppIntegerValue

Convenience function that directly obtains an integer preference value for the specified key.