| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Why not:Is it possible to set a NSDictionary back into NSUserDefaults and have it replace ALL keys and values currently in NSUserDefaults?
My goal is to save the Defaults to a dictionary, change some things in the Defaults, then restore the defaults to their old values.
While it's not a good solution, maybe this could work:
[myDictionary writeToFile:[[[NSHomeDirectory() stringByAppendingString:@"/Library/Preferences/"]
stringByAppendingString:[[[NSBundle mainBundle] infoDictionary] valueForKeyPath:@"CFBundleIdentifier"]] atomically:YES];
| References: | |
| >Re: Replacing NSUserDefaults (From: Stéphane Sudre <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.