O'Reilly logo

Learning Carbon by Apple Computer Inc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Text Input Events

Text input events are generated in response to text input handled by the Text Services Manager. These events typically correspond to actions taken by a text input method, rather than raw keystrokes, although some of the parameters allow you to extract individual characters.

Table C-6. Required Parameter Names and Types for Text Input Event Kinds

Event kindParameter nameParameter type

kEventUpdateActiveInputArea

kEventParamTextInputSendComponentInstance

typeComponentInstance
  kEventParamTextInputSendRefCon typeLongInteger
  kEventParamTextInputSendSLRec typeIntlWritingCode
  kEventParamTextInputSendFixLen typeLongInteger
  kEventParamTextInputSendText

typeUnicodeText for a Unicode document; typeChar otherwise

kEventUnicodeForKeyEvent

kEventParamTextInputSendComponentInstance

typeComponentInstance
  kEventParamTextInputSendRefCon typeLongInteger
  kEventParamTextInputSendSLRec typeIntlWritingCode
  kEventParamTextInputSendText typeUnicodeText
 

kEventParamTextInputSendKeyboardEvent

typeEventRef
kEventOffsetToPos

kEventParamTextInputSendComponentInstance

typeComponentInstance
  kEventParamTextInputSendRefCon typeLongInteger
 

kEventParamTextInputSendTextOffset

typeLongInteger
  kEventParamTextInputReplyPoint typeQDPoint
kEventPosToOffset

kEventParamTextInputSendComponentInstance

typeComponentInstance
  kEventParamTextInputSendRefCon typeLongInteger
 

kEventParamTextInputSendCurrentPoint

typeQDPoint
 

kEventParamTextInputReplyRegionClass ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required