Re: Draw NSBezierPath inside a PDFPage
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