Important: The information in this document is obsolete and should not be used for new development.
Apple Event Handlers Supplied by Client Applications
This section describes the Apple events for which client applications must install handlers. Text service components request action from and send information to client applications through these Apple events.Your application uses these Apple events to receive text from text service components, to show or hide input windows, and to convert screen positions to text offsets--and vice versa--for text service components. The conversion operations are used to track mouse events and determine screen locations of text in the active input area.
The Apple events described in this section are all organized under the
kTextServiceClass
constant with a value of'tsvc'
.lists the Apple event ID constants for the Apple events described in this section.
Table 7-2 shows the Apple event keyword constants used in the Apple events described in this section.
Table 7-3 lists the Apple event descriptor types discussed in this section.
Table 7-4 lists the Apple event descriptor type constants for region class discussed in
this section.
Table 7-4 Apple event descriptor type constants for the Apple event region class Constant Value kTSMOutsideOfBody 1 kTSMInsideOfBody 2 kTSMInsideOfActiveInputArea 3 For the values of standard Apple event constants used in the following section not listed in these tables, see the Apple Event Registry: Standard Suites.
Subtopics
- Creating and Updating an Active Input Area
- Converting Global Coordinates to Text Offsets
- Converting Text Offsets to Global Coordinates
- Showing or Hiding the Floating Input Window