On 5/23/08, Dmitri Goutnik <[EMAIL PROTECTED]> wrote: > > On May 23, 2008, at 11:18 AM, Bridger Maxwell wrote: > >> Perhaps there is a way to see how far along the >> animation is for a given layer, and be able to make another layer >> synch to >> the same time. Surely this has to be possible. >> > > Haven't tried this myself but it should be possible to get currently > displayed animation values using CALayer presentationLayer property. > > -Dmitri >
The presentationLayer is a pretty good idea and definitely worth trying. I do wonder about imperfect timing issues though. As I understand it, Core Animation operates on its own thread so there might be a slight skew between the time you query the value and the time it takes to dispatch a new animation. I would be curious to know the results of actually trying this. If this doesn't work out, depending on your application, maybe another thing to try is pre-creating all the pulsing layers at the same time within a CATransaction block, but keep them hidden until you need them. Then as you need them swap a non-pulsing layer for a pulsing one. Not sure of the exact details as I haven't tried this. -Eric _______________________________________________ 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 [EMAIL PROTECTED]