Hi Michael,
My pleasure. Although Scott wrote the docs that I used to learn CA so
I could write a book ;)
As Scott pointed out if you are simply resizing the view you don't
necessarily need layers to accomplish animation as the view's animator
will do the animation just fine. If you are d
Bill,
Given that you've "written the book" on Core Animation, I really
appreciate your insights. Since my view is layer backed (I called
setWantsLayer:YES on a parent view), then my call to [[self layer]
addAnimation...] should be [self addAnimation] instead? The other
thing that I'm no
On Apr 15, 2008, at 11:01 PM, Bill Dudney wrote:
Hi Michael,
Are you layer backed or layer hosting (i.e. did you se the layer
explicitly?) If you are layer hosting then add he explicit animation
to the view instead of the layer (when layer backing you should not
manipulate the layer direc
why use explicit at all?
just work through the animator object and set the new value... if
necessary you can surround it with a transaction ot change the size.
assuming 'self' is the View
[[self animator] setFrame:largerRect];
done.
it'll work with or without layer backing being turned o
Hi Michael,
Are you layer backed or layer hosting (i.e. did you se the layer
explicitly?) If you are layer hosting then add he explicit animation
to the view instead of the layer (when layer backing you should not
manipulate the layer directly).
If you are doing layer hosting then try lea
Folks,
I'm trying to perform a basic resize on an NSView subclass using an
explicit animation. The code compiles and runs without crashing, but
also without performing the resize. I'm obviously missing something
very basic, but I haven't been able to find the answer elsewhere.
Here's m