Re: About Ink drawing with wacom tablet

2008-11-05 Thread john chen
Raleigh, Thanks a lot for your suggestion. I have already tried the easy route, it works, but people is not happy with that since when the pen is outside the view, it won't draw on it. It's hard for user to keep the pen inside the view. That is why I am looking for a better solution. So it sounds

Re: About Ink drawing with wacom tablet

2008-11-05 Thread Raleigh Ledet
Here are the following ways to see NSTabletPoint events (or - tabletPoint:) 1. Between the mouseDown: and first mouseDragged:. During this period of time, other tablet properties may be changing (such as pressure or tilt). Once the user moves the pen enough to move the cursor at least 1 pi

Re: About Ink drawing with wacom tablet

2008-11-05 Thread Raleigh Ledet
Hi John, As a former Wacom OS X Software Engineer, I believe I can be of some assistance. There are 2 routes you can go. Easy and Hard. Easy: Just grab any pertinent tablet info out of the mouseDragged event. You can make sure that the mouse event has tablet data via [event subType] == N

Re: About Ink drawing with wacom tablet

2008-11-04 Thread john chen
Ben, I tried both turn off or turn on the Ink from Ink panel, but still not seeing the NSTabletPoint event in either case. Thanks, John On Tue, Nov 4, 2008 at 11:34 AM, Benjamin Stiglitz <[EMAIL PROTECTED]> wrote: > > Did I miss something, or I was doing something wrong? I have > > InkSetAppli

Re: About Ink drawing with wacom tablet

2008-11-04 Thread Benjamin Stiglitz
> Did I miss something, or I was doing something wrong? I have > InkSetApplicationWritingMode (kInkWriteAnywhereInApp); > > InkSetApplicationRecognitionMode (kInkRecognitionGesture | > kInkRecognitionText); You don’t want to turn on Ink in your case, since you want to capture the tablet events o

Re: About Ink drawing with wacom tablet

2008-11-03 Thread john chen
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 NSTa

Re: About Ink drawing with wacom tablet

2008-11-03 Thread john chen
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

Re: About Ink drawing with wacom tablet

2008-11-03 Thread Kevin Gessner
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 (th