Deleting a Preference

If a preference value is no longer needed, you can delete it by calling CFPreferencesSetAppValue and passing NULL as the value. Listing 1-4 demonstrates this process.

Listing 1-4 Deleteing a preference
CFStringRef highScoreKey = CFSTR("High Score"); // Remove the preference. CFPreferencesSetAppValue(highScoreKey, NULL, kCFPreferencesCurrentApplication);

© 2000 Apple Computer, Inc. (Last Updated 14 July 2000)