HOw do you save info to return to the correct state of an iphone program after a call

Discussion in 'Mac Programming' started by springframework, May 15, 2008.

  1. springframework macrumors member

    Mar 31, 2008
    what classes would u use? is their a tutorial on this somewhere online?
  2. tacoman667 macrumors regular

    Mar 27, 2008
    I am guessing you would dump all pertinent information of the current state of the application and forms and what forms are being used/seen currently into a cache file in the eventhandler for the application closing/suspending. You need to look in the application object methods, UIApplication or UIWindow I would venture a guess. Then have your application look for the cache file at startup. If you close the application in a certain view or state then you could just not write out the cache file, that way the application will not find it and start a new state at application load.

    Just my first thoughts on the mattter. There may be a better way. I believe, and I could be wrong as I am a new Mac user/developer from a Windows Platform, that this is how Mac applications work in OS X to some degree.
  3. springframework thread starter macrumors member

    Mar 31, 2008
    thanks for the reply, its definitely 'UIApplication' that i will use to know when the application is becoming active and inactive.

    do you know what class i would use to write a file to system somewhere that isnt gonna interfer with anything else.

Share This Page