Skip navigation.
 
mlRe: Adding subviews to a PDFView
FROM : Antonio Nunes
DATE : Wed Nov 14 21:55:34 2007

On 14 Nov 2007, at 19:54, John Calhoun wrote:

> You can convert from the page to the PDFView and vice versa using 
> PDFView methods.  You can get the embedded documentView from 
> PDFView.  The missing piece is the ol' -[NSView convertPointFrom/
> ToView:] methods.
>
> In short, you need to do a double convert.  page->PDFView and then 
> PDFView->documentView.


Thanks John,

I figured that out after Joell's post. It was just a one-liner to add 
to what I already had. I also solved the issue of the text view not 
scaling along with it's superview(s), so now we have a happy and well 
behaved text editor within a PDFView. :-)

Cheers,
António

-----------------------------------------------------------
Some things have to be believed to be seen.

--Ralph Hodgson
-----------------------------------------------------------

Related mailsAuthorDate
mlAdding subviews to a PDFView Antonio Nunes Nov 11, 20:42
mlRe: Adding subviews to a PDFView Joel Norvell Nov 12, 18:46
mlRe: Adding subviews to a PDFView Antonio Nunes Nov 12, 19:21
mlRe: Adding subviews to a PDFView John Calhoun Nov 14, 20:54
mlRe: Adding subviews to a PDFView Antonio Nunes Nov 14, 21:55
mlRe: Adding subviews to a PDFView Alexander Griekspo… Nov 15, 00:50