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 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?

/brian



I was under the impression that it didn't matter, but yes, I've tried that as well.

Bob

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to