• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Servicing Core Animations?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Servicing Core Animations? (From: Chilton Webb <email@hidden>)
 >Re: Servicing Core Animations? (From: "I. Savant" <email@hidden>)
 >Re: Servicing Core Animations? (From: Chilton Webb <email@hidden>)
 >Re: Servicing Core Animations? (From: Bill Dudney <email@hidden>)

  • Prev by Date: [Q] Any document that shows differences of Cocoa programming for Mac and for the iPhone/iPod touch?
  • Next by Date: Re: [Q] Any document that shows differences of Cocoa programming for Mac and for the iPhone/iPod touch?
  • Previous by thread: Re: Servicing Core Animations?
  • Next by thread: mysterious core data crash
  • Index(es):
    • Date
    • Thread