• 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: Adding subviews to a PDFView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Adding subviews to a PDFView (From: Antonio Nunes <email@hidden>)
 >Re: Adding subviews to a PDFView (From: John Calhoun <email@hidden>)

  • Prev by Date: Re: Image Preview
  • Next by Date: Re: Subclassing best practice
  • Previous by thread: Re: Adding subviews to a PDFView
  • Next by thread: Re: Adding subviews to a PDFView
  • Index(es):
    • Date
    • Thread