I’m getting an NSDictionary from the user defaults database which has key-value pairs of user settings. So the same content as NSUserDefaults dictionary has.
NSLog(@"%@ defaults = %@", [self class],
[[NSUserDefaults standardUserDefaults]
persistentDomainForName:[[NSBundle mainBundle] bundleIdentifier]]);
What would be the easiest way to persist that guy to disk and read back in as NSDictionary?
NSDictionary has the writeToFile:atomically: method to store it and the dictionaryWithContentsOfFile method to read it back in.
EDIT : THe article linked to in The MYYN’s answer has a few good examples of this 😉