Ink Services
Ink Services
- Subject: Ink Services
- From: Zoltan Foley-Fisher <email@hidden>
- Date: Mon, 19 Jul 2004 13:03:21 +0100
Hello,
I have been using Ink Services in my Cocoa app by linking to the carbon
framework and calling InkAddStrokeToCurrentPhrase with an array of ink
point structures that I form myself, as described in
http://developer.apple.com/documentation/Carbon/Conceptual/using_ink/
index.html.
My problem is that my application doesn't receive any ink events when I
terminate the phrase with
InkTerminateCurrentPhrase(kInkSourceApplication). I use the following
code to initialise ink before adding any strokes:
InkSetApplicationWritingMode(kInkWriteNowhereInApp);
InkSetApplicationRecognitionMode(kInkRecognitionDefault);
InkSetPhraseTerminationMode(kInkSourceApplication,
kInkTerminationNone);
Surprisingly, I discovered that if you set the control-key flag in the
key-modifiers field of the ink points added to a stroke, the
application receives key down/key up events, the key corresponding to a
recognised stroke.
I guess that my application is ignoring ink events in its run loop.
Does anyone have any ideas on solving this? How could I set my
application to accept ink events? Or should I create a second run loop
myself?
Thank you,
Zoltan Foley-Fisher
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.