If you use NSEvent to get a tablet event, the absoluteX, absoluteY,
and absoluteZ will give you position information. I believe that it
will be independent of the image view coordinates. You could construct
a path from that, and even include the pressure and rotation
information as well (though maybe not directly into NSBezierPath).
HTH,
-- Kevin
Kevin Gessner
http://www.kevingessner.com
[EMAIL PROTECTED]
On Nov 3, 2008, at 4:54 PM, john chen wrote:
Hi all,
I am working on to implement a signature feature in a cocoa
application. I
have an NSImageView, and the goal is for user to sign their names
using
wacom tablet and the signature would be drawn on the NSImageView. I
was
wondering if there is an API (from Ink, or wacom ...) that once user
is done
drawing on the tablet, I can call the API to get a NSImage, or
a NSBezierPath so I can draw directly onto the NSImageView ?
I saw there is post on cocoa-dev list,
http://www.cocoabuilder.com/archive/message/cocoa/2006/1/26/155365,
but I
haven't figured out how to do it in my cocoa application.
At this point, since I haven't figure out how to get the information
from
ink, I treated the pen as mouse and checking mouseDown event to draw
a NSBezierPath, which doesn't work well when the pen is outside the
NSImageView.
Thanks , I appreciate any help!
John
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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/kevin%40kevingessner.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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]