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
-----------------------------------------------------------
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 mails | Author | Date |
|---|---|---|
| Antonio Nunes | Nov 11, 20:42 | |
| Joel Norvell | Nov 12, 18:46 | |
| Antonio Nunes | Nov 12, 19:21 | |
| John Calhoun | Nov 14, 20:54 | |
| Antonio Nunes | Nov 14, 21:55 | |
| Alexander Griekspo… | Nov 15, 00:50 |






Cocoa mail archive

