I tried to implement a - (void)tabletPoint:(NSEvent *)theEvent in my
imageView class, but it didn't receive the event.  I then tried to check
the NSTabletPoint in  - (void)sendEvent:(NSEvent *)event of my event handler
class, but it didn't receive the NSTabletPoint event either. It did
receive NSTabletProximity
event when put the pen onto/off the tablet.
Did I miss something, or I was doing something wrong?  I have
InkSetApplicationWritingMode (kInkWriteAnywhereInApp);

InkSetApplicationRecognitionMode (kInkRecognitionGesture |
kInkRecognitionText);


in the awakeFromNib of my event handler class, so it should register itself
to listen to this kind of events.


Thanks,


John


On Mon, Nov 3, 2008 at 4:04 PM, john chen <[EMAIL PROTECTED]> wrote:

> Kevin,
> Do you mean to implement the - (void)tabletPoint:(NSEvent *)theEvent in my
> imageView class and construct the path from the points ? I will give it a
> shot, thanks!
>
> John
>
>
> On Mon, Nov 3, 2008 at 4:01 PM, Kevin Gessner <[EMAIL PROTECTED]>wrote:
>
>> 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]

Reply via email to