Important: The information in this document is obsolete and should not be used for new development.
Renaming a Document Containing Sections
If a user renames a document that contains sections by choosing Save As from the File menu, or if a user pastes a portion of a document that contains a section into another document, use theAssociateSection
function.Use the
AssociateSection
function to update the alias record of a registered section.
err := AssociateSection (sectionH, newSectionDocument);TheAssociateSection
function internally calls theUpdateAlias
function. It is also possible to update the alias record using the Alias Manager (see the chapter "Alias Manager" in Inside Macintosh: Files for additional information).