Important: The information in this document is obsolete and should not be used for new development.
TerminateTextService
TheTerminateTextService
function terminates the operations of a text service in preparation for closing the text service component.
FUNCTION TerminateTextService (ts: ComponentInstance): ComponentResult;
ts
- A component instance created by a prior call to the Component Manager
OpenComponent
function.DESCRIPTION
The Text Services Manager callsTerminateTextService
before closing the component instance. A text service component must use this opportunity to confirm any inline input in progress.If the text service component needs to remain open, it should return an
OSErr
value in the component result return value. This could happen, for example, if the user chooses Cancel in response to a text service component dialog box.If this call is made to the last open instance of a text service component, the component should hide any open palette windows. If it is an input method, the component should not dispose of its menu handle if it has a menu.