/ Published in: Objective C

Remove all the keys of the application’s preferences file from ~/Library/Preferences with Cocoa’s NSUserDefaults class.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
int i, count = [keys count]; for (i = 0; i < count; i++) { [defaults removeObjectForKey:[keys objectAtIndex:i]]; } [defaults synchronize];
URL: http://www.starcoder.com/wordpress/2007/02/13/removing-preferences-belonging-to-your-app/
Comments
