Core Animation animations stop prematurely at random
Core Animation animations stop prematurely at random
- Subject: Core Animation animations stop prematurely at random
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 16 May 2011 08:11:36 -0400
My Mac OS X application has an borderless transparent overlay window with a layer-hosting view. The view's layers add a bunch of animations in response to a hot key. It all works correctly -- sometimes.
When I quit and relaunch the application, the animations sometimes don't run for the full specified duration when I hit the hot key. During any given run of the application, the animations either work correctly every time I hit the hot key, or they stop prematurely every time I hit the hot key.
Whether a given launch yields good animations or bad animations is apparently random. All of the animations in sublayers always start running correctly in both good and bad launches, but in a bad launch they then instantly stop running (after 1 millisecond instead of the specified half-second duration), as reported by the -animationDidStart: and -animationDidStop:finished: delegate methods. Except that the animation in the root layer always completes in the specified half-second duration even on a bad launch.
I am not calling -removeAllAnimations or -removeAnimationForKey: anywhere in the application.
What could account for sublayer animations prematurely stopping on random application launches? I've tested everything I can think of.
--
Bill Cheeseman - 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