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 (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]

Reply via email to