Important: The information in this document is obsolete and should not be used for new development.
DeleteTSMDocument
TheDeleteTSMDocument
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 theDeleteTSMDocument
function to inform the Text Services Manager that the document is no longer using text service components.DeleteTSMDocument
invokes the Component ManagerCloseComponent
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
noErr No error tsmInvalidDocIDErr Document is not a valid TSM document tsmNeverRegisteredErr Application is not TSM-aware