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 / Creating and Activating TSM Documents


DeleteTSMDocument

The DeleteTSMDocument function closes all opened text service components for the TSM document.

FUNCTION DeleteTSMDocument (idocID: TSMDocumentID): OSErr;
idocID
A TSM document identification number created by a prior call to the NewTSMDocument function (see page 7-50).
DESCRIPTION
When your application disposes of a TSM document, it must call the DeleteTSMDocument function to inform the Text Services Manager that the document is no longer using text service components. DeleteTSMDocument invokes the Component Manager CloseComponent function for each open text service component associated with this document. It also disposes of the internal data structure for the
TSM document.

RESULT CODES
noErrNo error
tsmInvalidDocIDErrDocument is not a valid TSM document
tsmNeverRegisteredErrApplication is not TSM-aware

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996