• 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: Newbie CALayer Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie CALayer Questions


  • Subject: Re: Newbie CALayer Questions
  • From: Bob Barnes <email@hidden>
  • Date: Tue, 22 Jul 2008 09:53:30 -0700


On Jul 21, 2008, at 12:06 PM, David Duncan wrote:

On Jul 21, 2008, at 9:49 AM, Scott Anguish wrote:

On 21-Jul-08, at 10:48 AM, Bob Barnes wrote:

I hadn't considered that but I cut and pasted it directly from the documentation.

- (void)drawInContext(CGContextRef)ctx {
  NSLog(@"drawInContext called");
}

that should be

- (void)drawInContext:(CGContextRef)ctx


Also keep in mind that if you are using a delegate, you implement:

-(void)drawLayer:(CALayer*)layer inContext:(CGContextRef)ctx

--
David Duncan
Apple DTS Animation and Printing
email@hidden





Right, as I indicated in my original post, I had also tried using a delegate. Similarly to the subclassing technique where the display method was called, but not drawInContext, when I used a delegate the displayLayer method was called, but not the drawLayer method.


Bob

_______________________________________________

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


References: 
 >Newbie CALayer Questions (From: Bob Barnes <email@hidden>)
 >Re: Newbie CALayer Questions (From: Brian Christensen <email@hidden>)
 >Re: Newbie CALayer Questions (From: Scott Anguish <email@hidden>)
 >Re: Newbie CALayer Questions (From: Bob Barnes <email@hidden>)
 >Re: Newbie CALayer Questions (From: Scott Anguish <email@hidden>)
 >Re: Newbie CALayer Questions (From: David Duncan <email@hidden>)

  • Prev by Date: Re: NSTextView overdraw bug in Leopard?
  • Next by Date: Re: webDAV (lite) framework?
  • Previous by thread: Re: Newbie CALayer Questions
  • Next by thread: Re: Newbie CALayer Questions
  • Index(es):
    • Date
    • Thread