Re: applicationWillTerminate not received
Re: applicationWillTerminate not received
- Subject: Re: applicationWillTerminate not received
- From: Quincey Morris <email@hidden>
- Date: Sat, 02 Apr 2011 18:53:37 -0700
On Apr 2, 2011, at 18:01, Jeffrey Walton wrote:
> I planned on saving some state when the applicationWillTerminate was
> invoked. Are things working as expected? Should I abandon my plans to
> save state during termination?
No, you should save the state, but it's explained here:
http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/CoreApplication/CoreApplication.html
(search for all occurrences of "applicationWillTerminate", since the information you need is spread out) that you don't get the notification in the circumstances you describe.
I think you'll need to force a low-memory termination to test the code path through 'applicationWillTerminate:'. I couldn't see an easier way to make it happen with an iOS 4.0 backgroundable multitasking-aware app.
_______________________________________________
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