Creating the Section Record and Alias Record
Creating the Section Record and Alias Record
Your application is responsible for creating a section record and an
alias record for each publisher and subscriber section within an open
document.
The section record identifies each section as a publisher or subscriber and
provides identification for each section. The section record does not contain the
data within the section; it describes the attributes of the section. Your
application must provide its own method for associating the data within a
section with its section record. Your application is also responsible for saving
the data in the section.
The alias field of the section record contains a handle to its alias record. The
alias record is a reference to the edition container from the document which
contains the publisher or subscriber section. You should be familiar with the
Alias Manager's conventions for creating alias records and identifying
files, folders, and volumes to locate files that have been moved, copied, or
restored from backup.
When a user saves a document, your application should store all
section records and alias records in the resource fork. Corresponding
section records and alias records should have the same resource ID. This
allows compatibility for future changes.
The Figure below shows a document containing a publisher and subscriber,
and the corresponding section records and alias records.
The SectionRecord data type defines the section record. A section record
contains information to identify the data contained within a section as a
publisher or a subscriber, a time stamp to record the last modification of the
section, and unique identification for each section.
A document with a publisher and subscriber and its resource fork