Category Archives: Mac

Saving app data with the iPhone SDK and Cocoa is easy with NSUserDefaults

A quick look at NSUserDefaults suggests saving app data with Cocoa and the iPhone SDK is easy. I haven’t gotten much of a chance to use it so there might be some gotchas. To store nonsensitive data using NSUserDefaults is as easy as a couple of lines of code: [objc] NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];… Read More »