Re: [iPhone] Terminating iPhone App programatically

2010-07-09 Thread Uli Kusterer
Am Jul 5, 2010 um 6:51 PM schrieb Tharindu Madushanka: > Ah Ok. I got the point. Thanks :) So we should not look to exit the app > using code. Exactly. If it's an error situation, you should really try to gracefully handle such errors and give the user the option to continue using your applicat

Re: [iPhone] Terminating iPhone App programatically

2010-07-05 Thread Tharindu Madushanka
Hi, Ah Ok. I got the point. Thanks :) So we should not look to exit the app using code. Tharindu. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at coc

Re: [iPhone] Terminating iPhone App programatically

2010-07-05 Thread Roland King
That is not a public API (I had to google even to find it - if it's not in the official documentation, and it's not, it's not public, you can't use it and it can't be discussed here). If you did use that your application would most definitely be rejected. If you showed a dialog box and then te

Re: [iPhone] Terminating iPhone App programatically

2010-07-05 Thread Tharindu Madushanka
Hi, But is it okay to quit app programatically after showing an alert to user about application exit situation ? After reading the link I get the idea that we could use this feature sometimes. And also could I use [[UIApplication sharedApplication] terminateWithSuccess] ? Tharindu.

Re: [iPhone] Terminating iPhone App programatically

2010-07-05 Thread Dave DeLong
Apple strongly discourages programmatically quitting your application. That's what the home button is for. http://developer.apple.com/iphone/library/qa/qa2008/qa1561.html Dave Sent from my iPhone On Jul 5, 2010, at 10:08 AM, Tharindu Madushanka wrote: > Hi, > > If I use following code to e

[iPhone] Terminating iPhone App programatically

2010-07-05 Thread Tharindu Madushanka
Hi, If I use following code to exit my application in some certain conditions, depending on user inputs, will Apple reject the app ? [[UIApplication sharedApplication] terminateWithSuccess]; If so are there any other means to successfully terminate the app programatically ? Thanks and Kind Rega