• 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
Redraw layer during animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Redraw layer during animation


  • Subject: Redraw layer during animation
  • From: Dave Keck <email@hidden>
  • Date: Mon, 21 Sep 2009 18:57:39 -0400

Hey list,

I have a layer that draws its content based on its bounds size, and
I'm animating this layer's size using a CABasicAnimation. I've set the
layer's needsDisplayOnBoundsChange = YES.

During the course of the scaling animation, though, the layer is not
redrawn. Instead, its cached content (before the animation began) is
scaled, which doesn't look great. As best as I can tell, there's no
way to force a layer to be redrawn during an animation. (Performance
isn't an issue in this case - just a few shapes.)

I've started looking into implementing a custom CIFilter - which
apparently are redrawn during animations and such - but this solution
is looking ugly. Alternatively, I could set up a timer and animate the
layer's size manually, but I'm hoping for a better solution.

Any thoughts?

Thanks!

David
_______________________________________________

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

  • Prev by Date: Re: getting started on bindings => problems with NSMutableArray - NSArrayController - NSTableView
  • Next by Date: re: Core Data memory not freed after reset
  • Previous by thread: Re: Strategies for tracking a tricky (typing) slowdown/lag bug
  • Next by thread: Preferencepanel.xib file with an extra delegate object place inside
  • Index(es):
    • Date
    • Thread