How to make GS Viewer Quit rather than suspend :)

Rob2Rob2 Member Posts: 2,402
edited November -1 in Working with GS (Mac)
If you would rather have the GS viewer exit when you hit the home button of your iOS4 device add this key to the end of the info.plist file in the xcode project.

UIApplicationExitsOnSuspend

you will also have to ctrl click and select value type boolean to get a little tick box to appear.

Now when you hit the home button GS viewer will quit from memory but the icon will still be in the task window for quick access.

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    nice!
  • Rob2Rob2 Member Posts: 2,402
    yeah..sometimes the viewer gets stuck and it is a pain to go through the iOS4 wiggle kill process :)
  • firemaplegamesfiremaplegames Member Posts: 3,211
    Works like a charm! This will save me many minutes a day!
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    It would be awesome if the GS team could include this boolean in the project so we could just hit the flag depending on what we want.
  • DookiDooki Member Posts: 247
    HI Rob2,

    You replied to my thread and gave me this thread link. Interesting. Okay a couple of questions for you.
    1) Do I highlight the info.plist and paste UIApplicationExitsOnSuspend in, or do i need to type it in?
    2) Am supposed to be double clicking the info.plist?
    3) Am ctrl clicking the info.plist? If so, I do not see a "boolean" option.

    Thanks!
  • Rob2Rob2 Member Posts: 2,402
    sorry missed this...it is a tiny bit tricky

    open the info.plist file (double click in xcode)
    click on the bottom key (line) so it is highlighted and then click the + at the right hand end of line to add a new key.
    Then either type over or paste over whatever is automatically entered by xcode so it reads

    UIApplicationExitsOnSuspend

    Then ctrl click (on the new key you just created) and from the popup menu select value type, boolean and then click the tick box that appears....thats it.

    Now build to your device...
  • loressaloressa Member Posts: 11
    Just to be clear on this... I publish my app, then open package contents/info.plist in Xcode and create a new line and add the code, then save?

    What do you mean by "Now build to your device..."?

    This didn't seem to work for me.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    loressa said:
    Just to be clear on this... I publish my app, then open package contents/info.plist in Xcode and create a new line and add the code, then save?

    What do you mean by "Now build to your device..."?

    This didn't seem to work for me.

    Not sure what u mean by publish your app. This has nothing to do with getting your app to close instead of multitask when you hit the home button if thats what you mean. This was for the gamesalad viewer, and is also a year old.

    closed
This discussion has been closed.