Important: The information in this document is obsolete and should not be used for new development.
UnRegisterSection
When a section needs to be disposed of because the document containing the section is being closed or because the user has canceled the section, you need to call theUnRegisterSection
function before disposing of the section.
FUNCTION UnRegisterSection (sectionH: SectionHandle): OSErr;
sectionH
- A handle to the section record for a given section.
DESCRIPTION
TheUnRegisterSection
function removes the section from the Edition Manager's list of registered sections. You can then dispose of the section record and alias record with standard Memory Manager and Resource Manager calls. Once unregistered, a section does not receive any events and cannot read or write any data. Depending on your Clipboard strategy, you may want to unregister sections that have been cut into the Clipboard.RESULT CODES
noErr 0 No error fBsyErr -47 Section doing I/O editionMgrInitErr -450 Manager not initialized notRegisteredSectionErr -452 Not registered