Re: Newbie CALayer Questions

2008-07-22 Thread Bob Barnes
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 -

Re: Newbie CALayer Questions

2008-07-22 Thread Bob Barnes
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 {

Re: Newbie CALayer Questions

2008-07-21 Thread Bob Barnes
On Jul 20, 2008, at 9:22 PM, 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

Re: Newbie CALayer Questions

2008-07-21 Thread Scott Anguish
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 (copied and pasted from

Re: Newbie CALayer Questions

2008-07-21 Thread David Duncan
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 -

Newbie CALayer Questions

2008-07-20 Thread Bob Barnes
hi, 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

Re: Newbie CALayer Questions

2008-07-20 Thread Jens Alfke
On 20 Jul '08, at 5:00 PM, 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,

Re: Newbie CALayer Questions

2008-07-20 Thread Bob Barnes
On Jul 20, 2008, at 5:06 PM, Jens Alfke wrote: On 20 Jul '08, at 5:00 PM, 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

Re: Newbie CALayer Questions

2008-07-20 Thread Brian Christensen
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,

Re: Newbie CALayer Questions

2008-07-20 Thread Scott Anguish
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