• 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: Draw NSBezierPath inside a PDFPage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Draw NSBezierPath inside a PDFPage


  • Subject: Re: Draw NSBezierPath inside a PDFPage
  • From: Antonio Nunes <email@hidden>
  • Date: Sat, 7 Mar 2009 23:34:28 +0000

On 7 Mar 2009, at 22:17, malcom wrote:

In fact I need to make a small editor that allow the user to draw and
edit NSBezierPath (like in Sketch example) inside a PDFPage and then
incorporate them inside the page (in a second moment). My temp
solution is to draw an image with the pdf rapresentation and then draw
it as background for my view...but if I could draw directly on PDFPage
it will be the best solution. I've tried to subclass PDFView but
nothing and PDFPage does not have necessary methods (or I have not
found it).

For that you're best of subclassing PDFPage. Have a look at the PDFWatermarker and PDFCalender sample applications. (Available online among the Apple developer docs.)


Essentially, you do your drawing in the PDFPage's drawWithBox: method.

António

--------------------------------------------
I try to take one day at a time, but sometimes, several days attack me all at once!
--------------------------------------------



_______________________________________________

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: 
 >Draw NSBezierPath inside a PDFPage (From: malcom <email@hidden>)
 >Re: Draw NSBezierPath inside a PDFPage (From: Antonio Nunes <email@hidden>)
 >Re: Draw NSBezierPath inside a PDFPage (From: malcom <email@hidden>)

  • Prev by Date: Cleaner daemon managed by Launchd?
  • Next by Date: Re: Cleaner daemon managed by Launchd?
  • Previous by thread: Re: Draw NSBezierPath inside a PDFPage
  • Next by thread: Mysterious hanging problem while drawing
  • Index(es):
    • Date
    • Thread