Published in: Objective C
URL: http://www.starcoder.com/wordpress/2007/02/13/removing-preferences-belonging-to-your-app/
Remove all the keys of the application’s preferences file from ~/Library/Preferences with Cocoa’s NSUserDefaults class.
int i, count = [keys count]; for (i = 0; i < count; i++) { [defaults removeObjectForKey:[keys objectAtIndex:i]]; } [defaults synchronize];
You need to login to post a comment.
