Storing high scores locally - best practices/tips???
Let's assume I don't want to use OpenFeint, Crystal, Ngmoco PlusPlus, etc but instead store high scores locally onto the device. I'm deciding whether to use plist or SQLite to store 10 name/score pair for 10 and what are the pro/cons for each. Here's what I have off the top of my head:
Plist:
+ Easy to use (writeToFile: and similar for NSDictionary, NSArray, NSString, NSData)
- Persist in RAM (if retained in a class member)
SQLite:
+ Can scale (adding more levels or name/score pair)
+ Smaller RAM footprint (IE getting only what is needed)
- A little steeper learning curve
|