Re: CA: How to wait for an animation to finish?
Re: CA: How to wait for an animation to finish?
- Subject: Re: CA: How to wait for an animation to finish?
- From: Jens Alfke <email@hidden>
- Date: Sun, 16 Mar 2008 10:15:35 -0700
On 16 Mar '08, at 9:43 AM, Joachim Deelen wrote:
maybe the Delegation Method:
- (void)animationDidStop:(CAAnimation *)animation finished:
(BOOL)finished;
is what you are looking for?!
It would be, if I had a CAAnimation object. But I don't. All I did was
something like "layer.position = newPos". That creates an implicit
animation behind the scenes, but I don't see any way to get the object
corresponding to that animation, so I have no way of tracking its
progress.
(And yes, I could change that line of code to explicitly create a
CAAnimation instead. But I have tons of code all over my project that
creates implicit animations, and changing all of it is totally
impractical.)
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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