Important: The information in this document is obsolete and should not be used for new development.
Reading and Writing Non-Edition Files
The Edition Manager never opens or closes an edition container directly--it calls the current edition opener. See "Subscribing to Non-Edition Files" beginning on page 2-62 for additional information.To override the standard opener function, create an opener function that contains the following parameters:
FUNCTION MyOpener (selector: EditionOpenerVerb; VAR PB: EditionOpenerParamBlock): OSErr;When this function is called by the Edition Manager, theselector
parameter is set to one of the edition opener verbs (eoOpen
,eoClose
,eoOpenNew
,eoCloseNew
,eoCanSubscribe
). ThePB
parameter contains an edition opener parameter block record.Use the
GetEditionOpenerProc
function to locate the current edition opener and use theSetEditionOpenerProc
function to provide your own edition opener.Use the
CallEditionOpenerProc
function to call an edition opener and use theCallFormatIOProc
function to call a format I/O function.
Subtopics
- GetEditionOpenerProc
- SetEditionOpenerProc
- CallEditionOpenerProc
- CallFormatIOProc