Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 7 - Text Services Manager / Text Services Manager Reference
Text Service Component Routines / Providing a Text Service


TerminateTextService

The TerminateTextService 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 calls TerminateTextService 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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996