• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CALayer subclass question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: CALayer subclass question
      • From: Brian Christensen <email@hidden>
  • Prev by Date: Re: ArrayController Out of Bounds
  • Next by Date: Re: NSTextView causes lockups when appending too quickly and/or scrolling
  • Previous by thread: Re: invoking quicklook via code
  • Next by thread: Re: CALayer subclass question
  • Index(es):
    • Date
    • Thread