Re: -[PDFView drawPage:] and Printing

2009-02-10 Thread Kyle Sluder
On Tue, Feb 10, 2009 at 2:59 PM, John Calhoun wrote: > -[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. Excellent, it all makes sense now

Re: -[PDFView drawPage:] and Printing

2009-02-10 Thread John Calhoun
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

Re: -[PDFView drawPage:] and Printing

2009-02-10 Thread Antonio Nunes
Forgot to include the list when I sent this, so, for the benefit of the archives: On 9 Feb 2009, at 22:28, Kyle Sluder wrote: I'm overriding -drawPage: in a PDFView subclass with the intent of layering two PDFs on top of each other. It works great on screen, but when I attempt to print the d

Re: -[PDFView drawPage:] and Printing

2009-02-10 Thread Antonio Nunes
On 10 Feb 2009, at 05:51, Kyle Sluder wrote: Does PDFView refer to a view containing the enclosing scroll view, or perhaps the scroll view itself? If so, why does -[PDFView drawPage:] exist? One use is that it can be overridden for all kinds of customization. For instance, you may need to

Re: -[PDFView drawPage:] and Printing

2009-02-09 Thread Kyle Sluder
On Mon, Feb 9, 2009 at 5:57 PM, John Calhoun wrote: > That is true. The PDFPage draw method is instead what is being called (in > fact it is called both via printing and by the PDFView itself in order to > display the PDF). Okay, so at this point I guess I need to establish just what's going on.

Re: -[PDFView drawPage:] and Printing

2009-02-09 Thread John Calhoun
On Feb 9, 2009, at 1:28 PM, Kyle Sluder wrote: I'm overriding -drawPage: in a PDFView subclass with the intent of layering two PDFs on top of each other. It works great on screen, but when I attempt to print the document, PDFKit just prints the document PDFView rather than using my -drawPage: me

-[PDFView drawPage:] and Printing

2009-02-09 Thread Kyle Sluder
Hi list, I'm overriding -drawPage: in a PDFView subclass with the intent of layering two PDFs on top of each other. It works great on screen, but when I attempt to print the document, PDFKit just prints the document PDFView rather than using my -drawPage: method. I've tried -[PDFView print:], -[