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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-13-2010, 03:46 AM   #1 (permalink)
strider2k
Registered Member
 
Join Date: Dec 2009
Location: Elk Grove, CA
Posts: 12
strider2k is on a distinguished road
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
 

» Advertisements
» Online Users: 486
21 members and 465 guests
Apptronics RBC, baja_yu, brainspoon, Chickenrig, comicool, Davor, Domele, Droverson, elhanche, eski, fredbmm, habitatus, hongto24, john love, MattW, m_rozzi, Newbie123, RickSDK, teebee74, txnhome, WeaselPig
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,551
Threads: 94,078
Posts: 402,725
Top Poster: BrianSlick (7,990)
Welcome to our newest member, hongto24
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:03 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.