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-18-2010, 02:35 AM   #1 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 10
Default How To Manage Session?

Hi all,
I am designing a small game, that play with few images.
When user is in play section there are so many things those are managed by application.

Now i am trying to manage session of application, so that is user press HOME button of iphone and start application again application will prompt to start from previous location or new one.

I can not use "NSUserDefaults" because there are lots of things to manage ,

Suggest me some better way to retrieve back the last state of application.

Last edited by deepak_chrome; 06-18-2010 at 03:08 AM.
deepak_chrome is offline   Reply With Quote
Old 06-18-2010, 10:54 AM   #2 (permalink)
Maker of Games
 
Mr Jack's Avatar
 
Join Date: Nov 2009
Location: Coventry, UK
Posts: 395
Default

Write out a file with the data, read it in - and delete - when you reload.
__________________


Visit Mr Jack Games for my blog and more about my games
Mr Jack is offline   Reply With Quote
Old 06-22-2010, 04:24 AM   #3 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 10
Default quick question

Thanks for your reply, but did not get it properly.
as i understand u are suggesting me to write all data to file then read from it when return and delete so that new file can be write for new state, but
if i write all data to file even then i have to take care of approximately 570 values. Its a small game i need some way to manage the current state of iphone application.

Quote:
Originally Posted by Mr Jack View Post
Write out a file with the data, read it in - and delete - when you reload.
deepak_chrome is offline   Reply With Quote
Old 06-22-2010, 06:25 AM   #4 (permalink)
Maker of Games
 
Mr Jack's Avatar
 
Join Date: Nov 2009
Location: Coventry, UK
Posts: 395
Default

Quote:
Originally Posted by deepak_chrome View Post
as i understand u are suggesting me to write all data to file then read from it when return and delete so that new file can be write for new state, but
if i write all data to file even then i have to take care of approximately 570 values. Its a small game i need some way to manage the current state of iphone application.
Why's 570 values a problem?
__________________


Visit Mr Jack Games for my blog and more about my games
Mr Jack is offline   Reply With Quote
Reply

Bookmarks

Tags
management, session, state

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: 258
20 members and 238 guests
2WeeksToGo, ADY, BrianSlick, dacapo, Dani77, Dattee, Duncan C, headkaze, IphoneSdk, jemicha, kapps11, mer10, mgon987, Punkjumper, sneaky, timle8n1
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,879
Threads: 89,228
Posts: 380,743
Top Poster: BrianSlick (7,129)
Welcome to our newest member, mgon987
Powered by vBadvanced CMPS v3.1.0

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