On May 10, 2011, at 9:14 PM, Conrad Shultz wrote: > Your app delegate gets various notifications/messages that it can use to > perform appropriate actions at the various points in the life cycle, and > it sounds like you might need to do this. These are discussed in detail > in the section "The Application Life Cycle" at > http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/CoreApplication/CoreApplication.html. > > In particular, you may want to examine: > > –applicationDidEnterBackground: > –applicationWillEnterForeground: > –applicationWillTerminate:
And if you don't want to or can't put the handlers in the UIApplication delegate, you can just observe the UIApplication notifications themselves. I do this a lot for stand-alone classes that need to cancel UI when the application goes into the background. _______________________________________________ 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 cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com