• 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: -[PDFView drawPage:] and Printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -[PDFView drawPage:] and Printing


  • Subject: Re: -[PDFView drawPage:] and Printing
  • From: John Calhoun <email@hidden>
  • Date: Tue, 10 Feb 2009 11:59:37 -0800

On Feb 9, 2009, at 8:51 PM, Kyle Sluder wrote:
Okay, so at this point I guess I need to establish just what's going
on.  Does PDFView refer to a view containing the enclosing scroll
view, or perhaps the scroll view itself?

For better or worse, the PDFView is the enclosing view ... but as you describe there is a nested scrollview and deeper still the document view.


When the document view gets a -[drawRect:] call it determines the visible pages (based on the PDFView display layout, and position of the scroller, zoom, etc.) and then calls PDFView's -[drawPage:] for each visible page.

-[PDFView drawPage:] was put in PDFView as a convenience so it can be overriden in a subclass of PDFView. The default implementation of this method calls -[PDFPage drawWithBox:] for the page in question.

John Calhoun—_______________________________________________

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


  • Follow-Ups:
    • Re: -[PDFView drawPage:] and Printing
      • From: Kyle Sluder <email@hidden>
References: 
 >-[PDFView drawPage:] and Printing (From: Kyle Sluder <email@hidden>)
 >Re: -[PDFView drawPage:] and Printing (From: John Calhoun <email@hidden>)
 >Re: -[PDFView drawPage:] and Printing (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: RubyCocoa: IB do not read class files
  • Next by Date: Re: -[PDFView drawPage:] and Printing
  • Previous by thread: Re: -[PDFView drawPage:] and Printing
  • Next by thread: Re: -[PDFView drawPage:] and Printing
  • Index(es):
    • Date
    • Thread