Re: PDFMarkupAnnotations not showing when drawing PDFPage
Re: PDFMarkupAnnotations not showing when drawing PDFPage
- Subject: Re: PDFMarkupAnnotations not showing when drawing PDFPage
- From: John Calhoun <email@hidden>
- Date: Fri, 16 Feb 2007 16:32:21 -0800
On Feb 16, 2007, at 2:11 PM, Antonio Nunes wrote:
Aha, now we're getting somewhere: the results (whether for strikeout
or underline type) depend on the color, both in the NSView and in
the PDFView:
Why would that be though? What is it about the context of the NSView
that is any different than the context of the PDFView's internal
NSView? That's a mystery to me.
Well, since I had already subclassed it, that was easy. But, alas:
the drawWithBox method doesn't get called.
Yeah, on Leopard, the method does get called. Unfortunately for
Tiger, this method was sometimes short-circuited and a lower-level
method was called....
Implement this in your subclass:
- (void) drawInContext: (CGContextRef) context withBounds: (NSRect)
bounds
This one is always called.
john calhoun—_______________________________________________
Cocoa-dev mailing list (email@hidden)
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