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


AssociateSection

If a user saves a document that contains sections under another name (using Save As) or pastes a portion of a document that contains a section into another document, use the AssociateSection function to update the section's alias record.

FUNCTION AssociateSection (sectionH: SectionHandle;
                           newSectionDocument: FSSpecPtr): OSErr;
sectionH
A handle to the section record for a given section.
newSectionDocument
The volume reference number, directory ID, and filename of the new document.
DESCRIPTION
The AssociateSection function calls UpdateAlias on the section's alias record.

RESULT CODES
noErr0No error
paramErr-50Invalid parameter
SEE ALSO
For information on the UpdateAlias function, see the chapter "Alias Manager" in Inside Macintosh: Files.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996