CFPreferencesCopyAppValue

Header: CFPreferences.h Carbon status: Supported

Obtains a preference value for the specified key and application.

CFPropertyListRef CFPreferencesCopyAppValue (
    CFStringRef key, 
    CFStringRef appName
);
Parameter descriptions
key

The preference key whose value you wish to obtain.

appName

The identifier of the application whose preferences you wish to search, typically kCFPreferencesCurrentApplication. Do not pass NULL or kCFPreferencesAnyApplication.

function result

The preference data for the specified key and application. The data is returned as a Core Foundation Property List data type. Use the function CFGetTypeID to determine the value’s type. If no value was located, NULL is returned. You must release the returned value.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)