Re: Setting a layer delegate affects drawRect being called
Re: Setting a layer delegate affects drawRect being called
- Subject: Re: Setting a layer delegate affects drawRect being called
- From: David Duncan <email@hidden>
- Date: Thu, 16 Apr 2009 15:16:08 -0700
On Apr 16, 2009, at 3:02 PM, Mohan Parthasarathy wrote:
I am implementing actionForLayer:forKey for the property
"sublayers". How do I do this unless I am implementing the Views
Layer delegate because i am adding/removing layers from the Views
root Layer ? Does this mean I have to add a dummy Layer and be the
delegate of that to which I can add/remove layers ?
There are alternatives to using the delegate protocol to add
animations to a layer, one of which may be appropriate here. See the
documentation for -actionForKey: for more details.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
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