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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to