• 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: PDFMarkupAnnotations not showing when drawing PDFPage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: PDFMarkupAnnotations not showing when drawing PDFPage (CORRECTION)
      • From: John Calhoun <email@hidden>
References: 
 >PDFMarkupAnnotations not showing when drawing PDFPage (From: Antonio Nunes <email@hidden>)
 >Re: PDFMarkupAnnotations not showing when drawing PDFPage (From: John Calhoun <email@hidden>)
 >Re: PDFMarkupAnnotations not showing when drawing PDFPage (From: Antonio Nunes <email@hidden>)
 >Re: PDFMarkupAnnotations not showing when drawing PDFPage (From: John Calhoun <email@hidden>)
 >Re: PDFMarkupAnnotations not showing when drawing PDFPage (From: Antonio Nunes <email@hidden>)
 >Re: PDFMarkupAnnotations not showing when drawing PDFPage (From: John Calhoun <email@hidden>)
 >Re: PDFMarkupAnnotations not showing when drawing PDFPage (From: Antonio Nunes <email@hidden>)
 >Re: PDFMarkupAnnotations not showing when drawing PDFPage (From: John Calhoun <email@hidden>)
 >Re: PDFMarkupAnnotations not showing when drawing PDFPage (From: Antonio Nunes <email@hidden>)

  • Prev by Date: Re: Core Data, bindings and synchronizing.
  • Next by Date: Re: PDFMarkupAnnotations not showing when drawing PDFPage (CORRECTION)
  • Previous by thread: Re: PDFMarkupAnnotations not showing when drawing PDFPage
  • Next by thread: Re: PDFMarkupAnnotations not showing when drawing PDFPage (CORRECTION)
  • Index(es):
    • Date
    • Thread