Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-13-2010, 04:46 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Elk Grove, CA
Posts: 12
Default 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
strider2k is offline   Reply With Quote
Old 06-14-2010, 12:24 AM   #2 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 35
Default

if all your doing is a name and number then go with a plist. the usage of ram plist to sqlite with something so small isn't going to make a difference.
SynSoft is offline   Reply With Quote
Old 06-15-2010, 01:42 AM   #3 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Elk Grove, CA
Posts: 12
Default

Quote:
Originally Posted by SynSoft View Post
if all your doing is a name and number then go with a plist. the usage of ram plist to sqlite with something so small isn't going to make a difference.
SynSoft, thanks for the tip. I'm currently using plist as we speak.
strider2k is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 252
19 members and 233 guests
14DEV, @sandris, ADY, ArtieFufkin10, bookesp, ckgni, Dani77, DarkAn, HemiMG, iDifferent, IphoneSdk, jakerocheleau, JasonR, MACralik, NSeven, prchn4christ, Rudy
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:52 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0