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, theselectorparameter is set to one of the edition opener verbs (eoOpen,eoClose,eoOpenNew,eoCloseNew,eoCanSubscribe). ThePBparameter contains an edition opener parameter block record.Use the
GetEditionOpenerProcfunction to locate the current edition opener and use theSetEditionOpenerProcfunction to provide your own edition opener.Use the
CallEditionOpenerProcfunction to call an edition opener and use theCallFormatIOProcfunction to call a format I/O function.
Subtopics
- GetEditionOpenerProc
- SetEditionOpenerProc
- CallEditionOpenerProc
- CallFormatIOProc