Re: Servicing Core Animations?
Re: Servicing Core Animations?
- Subject: Re: Servicing Core Animations?
- From: Jens Alfke <email@hidden>
- Date: Mon, 14 Jul 2008 13:27:52 -0700
On 14 Jul '08, at 11:52 AM, Bill Dudney wrote:
You can of course override this but in the example below you are
doing the animation yourself so there is no reason for CA. i.e.
tracking mouse movements is not something you want to do with CA
animations anyway.
It's fine to use CA while tracking mouse movements — that's how you
let the user drag a layer around. But you should disable animations on
that layer while doing so, at least on the 'position' property, as the
animations are really counterproductive. They cause the layer to lag
behind the mouse.
My GeekGameBoard sample code shows how to do this. Look at the
BoardView class.
<http://mooseyard.com/hg/hgwebdir.cgi/GeekGameBoard/>
—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