Re: CAShapeLayer curved path animation
Re: CAShapeLayer curved path animation
- Subject: Re: CAShapeLayer curved path animation
- From: Matt Neuburg <email@hidden>
- Date: Sun, 7 Nov 2010 08:28:15 -0800
On Sun, 7 Nov 2010 09:41:05 +1000, Gideon King <email@hidden> said:
>If I could draw the curve myself during animation, I could get it to do what I want, but I don't see any way of doing that.
>
Actually, if I'm understanding the question correctly, that might be a good solution. Perhaps you'd have to give up use of the shape layer and just use an ordinary layer - I'm not sure. But you can probably express your curve as an animatable property and when that property is animated your drawing code (e.g. drawInContext) will be called multiple times. The fact that you can supply your own animatable properties is one of the coolest and least known features of layers. m.
--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings_______________________________________________
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