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: Interapplication Communication /
Chapter 2 - Edition Manager / Edition Manager Reference
Edition Manager Routines / Creating and Registering a Section


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 the UnRegisterSection function before disposing of the section.

FUNCTION UnRegisterSection (sectionH: SectionHandle): OSErr;
sectionH
A handle to the section record for a given section.
DESCRIPTION
The UnRegisterSection 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
noErr0No error
fBsyErr-47Section doing I/O
editionMgrInitErr-450Manager not initialized
notRegisteredSectionErr-452Not registered

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996