Functions


Application-Level Function For Confirming Active Input in a TSM Document

FixTSMDocument Informs the Text Services Manager that input in the active input area of a specified TSM document has been interrupted, and that the text service component must confirm the text and terminate user input.

Application-Level Function For Passing Events to Text Service Components

TSMEvent Passes all events obtained from the WaitNextEvent function, including null events, to the Text Services Manager.

Application-Level Function For Requesting a Floating Input Window

UseInputWindow Associates a floating input window with a particular TSM document or with all TSM documents of an application.

Application-Level Functions For Associating Scripts and Languages With Components

GetDefaultInputMethod Returns the default (input method) text service component for a given script and language.
GetTextServiceLanguage Returns the language supported by the default (current) input method text service component for the current keyboard script.
SetDefaultInputMethod Assigns a default (input method) text service component to a given script and language.
SetTextServiceLanguage Changes the current input script and language.

Application-Level Functions For Creating and Activating TSM Documents

ActivateTSMDocument Instructs the Text Services Manager to mark the TSM document associated with a newly active window as active.
DeactivateTSMDocument Instructs the Text Services Manager to mark the TSM document as inactive.
DeleteTSMDocument Closes all opened text service components for the TSM document.
NewTSMDocument Creates a TSM document and returns a handle to the document’s ID.

Application-Level Functions For Making Text Services Available to the User

CloseTextService Deactivates the active TSM document’s association with the specified text service and closes the service component.
GetServiceList Obtains a complete list of text service components of a given kind available to the user of your client application.
OpenTextService Instructs the Text Services Manager to open a text service component that a user has chosen and to associate it with a TSM document.

Application-level Functions For Passing Menu Selections and Cursor Setting

SetTSMCursor Provides an opportunity for the text service component to set the shape of the cursor. If the text service component does not respond, your application may set the cursor.
TSMMenuSelect Gives the specified text service component a chance to reply to a menu selection.

Component-Level TSM Function For Sending Apple Events to a Client Application

SendAEFromTSMComponent Sends Apple events from a text service component to a client application.

Component-Level TSM Functions For Opening Floating Utility Windows

CloseServiceWindow Closes a previously allocated floating input window.
FindServiceWindow Determines which part of a text service component’s floating window a mouse-down event has occurred in.
GetFrontServiceWindow Determines which is the frontmost window in the floating window service layer.
NewServiceWindow Opens a floating utility window in the floating window service layer, in front of the current application. The text service component may use the window for interaction with the user or other purposes.

Initializing and Closing as a TSM-Aware Application

CloseTSMAwareApplication Informs the Text Services Manager that you have closed your application.
InitTSMAwareApplication Informs the Text Services Manager that your application is TSM-aware.

Text Service Component Function For Confirming Active Input in a TSM Document

FixTextService Explicitly terminates any input that is in progress in a specified text service component.

Text Service Component Function For Identifying the Supported Scripts and Languages

GetScriptLanguageSupport Determines which languages and scripts a specified text service component supports, including its primary language and script.

Text Service Component Functions For Providing a Text Service

ActivateTextService Notifies a text service component that its associated document window is becoming active. This allows the text service component to display any associated floating windows.
DeactivateTextService Lets a text service component know that its associated document window is becoming inactive. This allows time for the text service component to prepare for deactivation.
HidePaletteWindows Instructs an input method to hide its floating windows because another input method is becoming active.
InitiateTextService Instructs a specified text service component to do whatever it needs to set up its operations and commence its performance.
TerminateTextService Terminates the operations of a text service in preparation for closing the text service component.

Text Service Component Functions For Responding to Events and Updating the Cursor and Menu

GetTextServiceMenu Returns a handle to a menu belonging to a text service component.
SetTextServiceCursor Lets the text service component control the shape of the cursor.
TextServiceEvent Routes an event to a specified text service component.
TextServiceMenuSelect Lets a text service component handle commands from its menus.

Miscellaneous

GetTextServiceProperty
NewCServiceWindow
SetTextServiceProperty
TextServiceEventRef
UCTextServiceEvent
UCTextServiceEventRef

© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)