• 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
Re: [iPhone] custom CALayer drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iPhone] custom CALayer drawing


  • Subject: Re: [iPhone] custom CALayer drawing
  • From: PCWiz <email@hidden>
  • Date: Thu, 11 Feb 2010 17:50:53 -0700

Yep, I just tried that (sent a reply a minute ago) but the drawInContext: method still isn't being called.


Independent Cocoa Developer, Macatomy Software
http://macatomy.com


On 2010-02-11, at 5:47 PM, David Duncan wrote:

> On Feb 11, 2010, at 3:44 PM, PCWiz wrote:
>
>> I'm trying to do some custom drawing in a CALayer subclass by overriding the drawInContext: method, but it appears that its not being called. In my subclass I just have this:
>>
>> However, the drawInContext method is never called. What am I doing wrong here?
>
> Layers (unlike views) start life validated. You need to call the layer's -setNeedsDisplay method for your -drawInContext: method to be called, so you should add a [lines setNeedsDisplay] call at some point.
> --
> 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

  • Follow-Ups:
    • Re: [iPhone] custom CALayer drawing
      • From: David Duncan <email@hidden>
References: 
 >[iPhone] custom CALayer drawing (From: PCWiz <email@hidden>)
 >Re: [iPhone] custom CALayer drawing (From: David Duncan <email@hidden>)

  • Prev by Date: Re: [iPhone] custom CALayer drawing
  • Next by Date: Re: No Methods being called in my subclassed NSArrayController
  • Previous by thread: Re: [iPhone] custom CALayer drawing
  • Next by thread: Re: [iPhone] custom CALayer drawing
  • Index(es):
    • Date
    • Thread