CALayer subclass question
CALayer subclass question
- Subject: CALayer subclass question
- From: Huibert Aalbers <email@hidden>
- Date: Wed, 4 Jun 2008 10:19:37 -0500
Hi,
I am starting to work with Core Animation. I have tried to subclass
CALayer but I am having problems because for some reason the
drawInContext method never gets called, even though I invoke
setNeedsDisplay on the layer.
What is weird though is that if I override the display method I can
see that it gets called properly. My understanding is that the default
implementation of the display method invokes drawInContext. So, my
question is, what could I be doing wrong that could explain this
behaviour?
This is probably a pretty basic question but I haven't been able to
find any complete examples on how to properly subclass NSLayer.
Everyone seems to believe that it is either unnecessary or complex.
Thanks in advance for your help.
Regards,
Huibert Aalbers
_______________________________________________
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