• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Delaying Between applicationWillResignActive and applicationDidEnterBackground
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Delaying Between applicationWillResignActive and applicationDidEnterBackground


  • Subject: RE: Delaying Between applicationWillResignActive and applicationDidEnterBackground
  • From: Brian Barnes <email@hidden>
  • Date: Wed, 21 Mar 2012 16:24:49 -0400

Julius Oklamcak wrote:

>Have you looked into using UIApplication's
>-beginBackgroundTaskWithExpirationHandler: in the >UIApplicationDelegate's-applicationDidEnterBackground: to give you >some background run time to finish the loop?

The problem is I need my loop to finish before didEnterBackground is called so I know the state is in a good place (i.e., not right in the middle of running physics.) I have all the time I need to actually save the state.

I'm beginning to suspect I'm out of luck. I'm going to have to do a lot of runs to see how and win I get the original message, I suspect there's something in SDL that makes it harder (i.e., some additional pump events in there.)

[>] Brian
_______________________________________________

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

  • Prev by Date: Re: makeObjectsPerformSelector on a sub class
  • Next by Date: Re: makeObjectsPerformSelector on a sub class
  • Previous by thread: RE: Delaying Between applicationWillResignActive andapplicationDidEnterBackground
  • Next by thread: asynchronous nsurlconnection in nsoperation
  • Index(es):
    • Date
    • Thread