Re: Newbie CALayer Questions
Re: Newbie CALayer Questions
- Subject: Re: Newbie CALayer Questions
- From: Bob Barnes <email@hidden>
- Date: Tue, 22 Jul 2008 09:45:31 -0700
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
(copied and pasted from the reference doc)
Not sure what happened to the colon, but the signature was correct
in the code (would it even compile if it wasn't?). At any rate I've
been able to get this to work by explicitly calling my CALayer's
setContents method and passing nil immediately before calling the
setNeedsDisplay method. Since I initialized contents to nil and never
assigned anything to it, I'm confused as to why that was needed, but at
this point I'll take it.
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