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 theAssociateSectionfunction.Use the
AssociateSectionfunction to update the alias record of a registered section.
err := AssociateSection (sectionH, newSectionDocument);TheAssociateSectionfunction internally calls theUpdateAliasfunction. 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).