Re: Need functionality of CAShapeLayer in 10.5
Re: Need functionality of CAShapeLayer in 10.5
- Subject: Re: Need functionality of CAShapeLayer in 10.5
- From: Kenneth Baxter <email@hidden>
- Date: Wed, 22 Sep 2010 01:14:10 +0000 (GMT)
Just a quick question about this - I notice that you say to use a timer which I presume you say deliberately rather than using the automatic needsDisplay and recalculating during display.
The way I was thinking of doing it would have resulted in the recalculation of the path during the drawing, which in turn would have meant that I would want to change the frame/bounds during the drawing, which presumably would not be a good thing, right? Is this why you would say to use a timer?
So presumably that means I would get the timer to fire frequently and then ask the presentation layer for the values for my animating points, and if they have changed, I recalculate my path, and update the frame if necessary, using a transaction which disables animation, and then calls setNeedsDisplay.
Sorry to need to bother you for the clarification, but I just need to make sure I understand correctly.
On 22 Sep, 2010,at 10:32 AM, David Duncan <email@hidden> wrote:
On Sep 21, 2010, at 5:02 PM, Kenneth Baxter wrote:
Any suggestions would be most welcome.
With a requirement of 10.5, about all you can do is call -setNeedsDisplay from a timer to implement the animation yourself, unless your path can be animated well enough by just stretching/squeezing the layer. Either way your talking about drawing your path into a plain CALayer.
--
David Duncan
_______________________________________________
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