• 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: Animating "contents" property of CALayer via the delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Animating "contents" property of CALayer via the delegate


  • Subject: Re: Animating "contents" property of CALayer via the delegate
  • From: David Duncan <email@hidden>
  • Date: Mon, 28 Sep 2009 10:41:06 -0700

On Sep 28, 2009, at 10:00 AM, Oleg Krupnov wrote:

Thanks, but that's not exactly what I need. I don't need to animate
"canned" sprites. I'd like to make a frame-by-frame, stop-motion
animation. I could use a NSAnimation or NSTimer object to drive the
frame motion (call layer's setNeedsDisplay on each timer event), but
I'd like to use CoreAnimation's internal timing. Is this possible at
all? I'm starting to doubt...


This is exactly what the keyframe animation you found is for. The problem is your requirement that you not have all of the content prepared ahead of time. You can't have it both ways – either all the content is prepared and you get Core Animation timing, or part of the content is prepared and you must do some of the work.

It is possible to use partial animations and use the delegate method to continue the overall animation by adding a new keyframe animation with another set of frames, but you may notice skips in the animation at the points where your delegate is called for you to add the next keyframe animation.
--
David Duncan
Apple DTS Animation and Printing


_______________________________________________

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: 
 >Re: Animating "contents" property of CALayer via the delegate (From: Matt Neuburg <email@hidden>)
 >Re: Animating "contents" property of CALayer via the delegate (From: Oleg Krupnov <email@hidden>)

  • Prev by Date: Quartz Composer API Questions (and comments)
  • Next by Date: C++ exception inside -[NSString drawWithRect:options:attributes:]
  • Previous by thread: Re: Animating "contents" property of CALayer via the delegate
  • Next by thread: NSBrowserDelegate gets passed nil matrix
  • Index(es):
    • Date
    • Thread