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 - b...@cheeseman.name

_______________________________________________

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

Reply via email to