Important: The information in this document is obsolete and should not be used for new development.
Using the Edition Manager
This section describes how your application can
To begin, you must determine whether the Edition Manager is available on the system by using the
- receive Apple events from the Edition Manager
- set up a section record and alias record for open documents containing sections
- save a document that contains sections
- open a document that contains sections
- read and write sections
- create a publisher within a document, create its edition container, and write data to it
- create a subscriber within a document and read its data from an edition
Gestalt
function with thegestaltEditionMgrAttr
('edtn'
) selector. If theresponse
parameter returns 1 in the bit defined by thegestaltEditionMgrPresent
constant (bit 0), the Edition Manager is present.If the Edition Manager is present, load it into memory using the
InitEditionPack
function. This function determines whether the machine has enough space in the system heap for the Edition Manager to operate.
err := InitEditionPack;If theInitEditionPack
function returnsnoErr
, you have enough space to load the package. If you do not have enough space, the application can either terminate itself or continue with the Edition Manager functionality disabled.
Subtopics
- Receiving Apple Events From the Edition Manager
- Creating the Section Record and Alias Record
- Saving a Document Containing Sections
- Opening and Closing a Document Containing Sections
- Reading and Writing a Section
- Creating a Publisher
- Creating a Subscriber
- Using Publisher and Subscriber Options
- Renaming a Document Containing Sections
- Displaying Publisher and Subscriber Borders
- Modifying a Subscriber
- Relocating an Edition
- Customizing Dialog Boxes