Re: Sample project "Cocoa Sliders": some questions about API usage
Re: Sample project "Cocoa Sliders": some questions about API usage
- Subject: Re: Sample project "Cocoa Sliders": some questions about API usage
- From: Scott Anguish <email@hidden>
- Date: Tue, 29 Jan 2008 19:39:22 -0800
There seem to be two questions here..
1. What other properties of a view can be animated. The short answer
is many, including your own. The complete list is in the release notes.
In this particular case a different transition from the default is
being used whenever the subviews array is modified (not this will only
work when layer backing is on for the superview)
Yes, you can use transitions between CALayers. I posted an example of
that here about a month or so ago. However, your format is incorrect.
If you want to operate on layers directly, you'd create a new
transaction animation, and then either add it to the animations for
the layer (addAnimation:forKey:) or create a copy of the actions
dictionary and add it to that for the sublayers key, or override
actionForKey: and handle it there
have a read of the Actions chapter in the Core Animation Programming
Guide, along with the Animations one which follows it.
file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/Actions.html
The other question, the view can use core image based filters to
animate content. Then is this fit for a CALayer? I mean, whether we
can write code as the following?
" [self setAnimations:[NSDictionary dictionaryWithObject:transition
forKey:@"sublayers"]];"
Actually, I am seeking a method which can make transition from a
CALayer to another CALayer using the Core Image transition Effects.
Thank you very much for any help. Best regards.
_______________________________________________
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
_______________________________________________
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