RE: Delaying Between applicationWillResignActive and applicationDidEnterBackground
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