• 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: About Ink drawing with wacom tablet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About Ink drawing with wacom tablet


  • Subject: Re: About Ink drawing with wacom tablet
  • From: "john chen" <email@hidden>
  • Date: Mon, 3 Nov 2008 17:24:14 -0600

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@hidden> 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@hidden>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@hidden
>>
>>
>>
>>
>>
>> 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 (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
>>>
>>
>>
>
_______________________________________________

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

  • Follow-Ups:
    • Re: About Ink drawing with wacom tablet
      • From: Benjamin Stiglitz <email@hidden>
References: 
 >About Ink drawing with wacom tablet (From: "john chen" <email@hidden>)
 >Re: About Ink drawing with wacom tablet (From: Kevin Gessner <email@hidden>)
 >Re: About Ink drawing with wacom tablet (From: "john chen" <email@hidden>)

  • Prev by Date: Re: Lack of Initializers or Factory Methods
  • Next by Date: Re: Xml
  • Previous by thread: Re: About Ink drawing with wacom tablet
  • Next by thread: Re: About Ink drawing with wacom tablet
  • Index(es):
    • Date
    • Thread