CALayer drawing transition effect?

2008-07-31 Thread Joseph Kelly
I am subclassing CALayer, and overriding -drawInContext: to perform my drawing. I'm noticing that whenever my -drawInContext gets called (in response to calling -setNeedsDisplay) that there appears to be an actual animated fade-out / fade-in of of the old content and the new content. I

Re: CALayer drawing transition effect?

2008-07-31 Thread Jens Alfke
On 31 Jul '08, at 10:24 AM, Joseph Kelly wrote: I'm noticing that whenever my -drawInContext gets called (in response to calling -setNeedsDisplay) that there appears to be an actual animated fade-out / fade-in of of the old content and the new content. I do not see this transition effect

Re: CALayer drawing transition effect?

2008-07-31 Thread Joseph Kelly
On Jul 31, 2008, at 11:07 AM, Jens Alfke wrote: The content of a layer is an animatable property, so by default, changing the content will do a crossfade. It seems that applies to custom content (drawn by -drawInContext:) as well as the content property. There are a couple ways to