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 Services Manager Routines for Client Applications / Making Text Services Available to the User


CloseTextService

The CloseTextService function deactivates the active TSM document's association with the specified text service and closes the service component.

FUNCTION CloseTextService (idocID: TSMDocumentID; 
                           aComponentInstance: ComponentInstance): 
                           OSErr;
idocID
The identification number of a TSM document created by a prior call to the NewTSMDocument function (see page 7-50).
aComponentInstance
The component instance created by a prior call to OpenTextService.
DESCRIPTION
When a user wants to close an opened text service component, your client application should call CloseTextService.

If the text service component displays a menu, the Text Services Manager removes the menu from the menu bar.

Note
This function is for closing text service components other than input methods. Your application does not need to open or close
input methods.
RESULT CODES
noErrNo error
tsmInvalidDocIDErrThe document is not a valid TSM document
tsmNoOpenTSErrThe component for this document is not open

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996