Re: How do I get CATransition to actually work?
Re: How do I get CATransition to actually work?
- Subject: Re: How do I get CATransition to actually work?
- From: Scott Anguish <email@hidden>
- Date: Sun, 28 Oct 2007 02:11:41 -0400
On Oct 27, 2007, at 11:44 PM, Nick Zitzmann wrote:
On Oct 27, 2007, at 5:51 PM, Scott Anguish wrote:
If you're in a straight CA environment the layer it can provide the
state before and after by imaging it with the new value you've set
the property to, and the original rendering..
Oh, so that's what it's for... I was hoping CATransition would work
on traditional views, but I guess I'm going to have to stick to
NSAnimation...
Well, it does when you're adding/removing views from the parent view.
There are two keys you can use to add transitions that will be used
then.
If your view/control only has a single thing in it you could set up
the view as a layer-hosting view, transition your drawing code from
drawRect: to one of the layer delegate methods, and leave all the
mouse/event handling in the view.. you'd get the CA features like
transitions and implicit and explicit animations..
_______________________________________________
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