Re: Adding subviews to a PDFView
Re: Adding subviews to a PDFView
- Subject: Re: Adding subviews to a PDFView
- From: Antonio Nunes <email@hidden>
- Date: Wed, 14 Nov 2007 20:55:34 +0000
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
-----------------------------------------------------------
_______________________________________________
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