Re: I have a Corrupt data
Re: I have a Corrupt data
- Subject: Re: I have a Corrupt data
- From: "Hank Heijink (Mailinglists)" <email@hidden>
- Date: Fri, 21 Aug 2009 22:52:01 -0400
I seem to remember you do iPhone development, so I'll answer from
there, inasmuch as I can: you're not giving us much to work with here.
As to your last question: there is no way to gracefully exit the
application. On an iPhone, you can't force an exit that doesn't look
like a crash to the user. Not recommended.
As to your first question: wouldn't you rather fix the corruption
issue with the save, than work around it? What kind of data are you
saving, and how? Why force the application to quit at all? Is the app
terminally crippled if the save doesn't work? You could set a flag
(i.e. save a flag) when the save is unsuccessful and deal with it upon
the next launch, but if that's a good idea all depends on what your
issue is.
You'll have to give us more information to get an answer that's
actually helpful, I'm afraid.
Hank
On Aug 21, 2009, at 10:28 PM, Agha Khan wrote:
HI:
While I am saving my data on exit, it save 99% correctly, but 1% the
data is not properly saved. In such situations I want to exit the
application and start new. How can we initiate new instance of that
application and removing old?
How can force to exit the application.
Best regards
Agha_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
@runbox.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden