• 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: Mon, 21 Jul 2008 07:48:22 -0700


On Jul 20, 2008, at 10:43 PM, Scott Anguish wrote:

that shouldn't be an issue if he's explicitly calling the setNeedsDisplay

is the method signature correct on your implementation of drawInContext:?



On 21-Jul-08, at 12:22 AM, Brian Christensen wrote:

On Jul 20, 2008, at 20:00, Bob Barnes wrote:

I have some questions related to CALayer drawing. I want to be able to display images, text, 2D graphics or a PDF page. I'm able to display an image by directly setting the contents property using a CGImageRef or subclassing CALayer, overriding display and sending setNeedsDisplay, but nothing I do seems to trigger the call to drawInContext. I've tried using a delegate for the CALayer and subclassing CALayer, but drawInContext never gets called. Is there something fundamental that I'm missing?

Is the needsDisplayOnBoundsChange property set to YES on your layer?




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


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

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


  • Follow-Ups:
    • Re: Newbie CALayer Questions
      • From: Scott Anguish <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>)

  • Prev by Date: Re: Newbie CALayer Questions
  • 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