Re: Setting a layer delegate affects drawRect being called

2009-04-16 Thread David Duncan
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 du

Re: Setting a layer delegate affects drawRect being called

2009-04-16 Thread David Duncan
On Apr 16, 2009, at 2:54 PM, Mohan Parthasarathy wrote: I have a View whose drawRect method never gets called when I call [View setNeedsDisplay]. It looks like the reason is that the View's layer delegate is been set and If I remove that drawRect is called. Is this an expected behavior or

Setting a layer delegate affects drawRect being called

2009-04-16 Thread Mohan Parthasarathy
Hi, I have a View whose drawRect method never gets called when I call [View setNeedsDisplay]. It looks like the reason is that the View's layer delegate is been set and If I remove that drawRect is called. Is this an expected behavior or something else is going on ? thanks -mohan