• 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
Ink Services
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Cocoa Bindings and popups
  • Next by Date: Re: cocoa app from scratch
  • Previous by thread: Re: Creating an EPS file from an NSImage
  • Next by thread: Efficient interactive address book searches
  • Index(es):
    • Date
    • Thread