Carbon


CloseTextService

Header: TextServices.h Carbon status: Supported

Deactivates the active TSM document’s association with the specified text service and closes the service component.

OSErr CloseTextService (
    TSMDocumentID idocID, 
    ComponentInstance aComponentInstance
);
Parameter descriptions
idocID

The identification number of a TSM document created by a prior call to the NewTSMDocument function.

aComponentInstance

The component instance created by a prior call to OpenTextService.

function result

A result code.

DISCUSSION

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. This function is for closing text service components other than input methods. Your application does not need to open or close input methods.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


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