I’ve been looking around for a way to store an NSArray containing lots of NSDictionaries. So far I’ve come across a few different ways of doing it, the most popular of these seems to be the NSUserDefaults approach. That said, it just doesn’t seem right to me. In my mind the NSUserDefaults should only really be used for storing the settings a user has selected.
Please can someone help me out with the best way to approach this problem? I’m certain that there must be some standard approach, however I can’t seem to pin it down!
Apple does has a framework that provides generalized and automated solutions to common tasks associated with object life-cycle and object graph management, including persistence. 😉
Seriously though, Core Data should be your first port of call, since it is optimised for the platform, and will scale too. Once you get your head around how it works, it’s really fairly straightforward. Also, it’s likely to perform better than any roll-your-own solution you come up with.