Using The Edition Manager
Using The Edition Manager
Using the Edition Manager your application can:
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
To begin, you must determine whether the Edition Manager is available on
your system by using the Gestalt function. The Gestalt selector is
gestaltEditionMgrAttr ('edtn'). If the response parameter returns 1 in the bit
defined by the gestaltEditionMgrPresent 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 your machine
has enough space in the system heap for the Edition Manager to operate.
If the InitEditionPack function returns noErr, 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.