• 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
Using Core Animation to animate view properties?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using Core Animation to animate view properties?


  • Subject: Using Core Animation to animate view properties?
  • From: Jim Correia <email@hidden>
  • Date: Mon, 20 Oct 2008 21:36:08 -0400

I have some view properties for which I'd like to use Core Animation to drive the animation.

In my old code, I used a subclass of NSAnimation which interpolated the target value and set the property on the view via KVO. This seems like a perfect use for CABasicAnimation and the animator proxy.

When using NSAnimation, if I needed to prematurely abort the animation, I could send -stopAnimation to my NSAnimation subclass. (I also had enough information at hand that it was trivial to fast forward the animated property to its target value if that was desirable.)

What mechanism do I have to

	- know that a property animation is in progress
	- abort it, if necessary
	- fast forward it to the target value after abort, if desired

- Jim
_______________________________________________

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


  • Follow-Ups:
    • Re: Using Core Animation to animate view properties?
      • From: Matt Long <email@hidden>
  • Prev by Date: Re: lockFocus error
  • Next by Date: NSRulerView cusom hashMarks
  • Previous by thread: Re: @property and HeaderDoc
  • Next by thread: Re: Using Core Animation to animate view properties?
  • Index(es):
    • Date
    • Thread