ADC Home > Reference Library > Technical Notes > Legacy Documents > Carbon >
Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.
Current information on this Reference Library topic can be found here:
|
Ordering of 'fmts' in an edition containerDate Written: 6/13/91 Last reviewed: 6/14/93 Is there any ordering to the ___ There is no implicit ordering of the formats in an edition container. They are
written and read and returned in the So the system can't make that decision. It doesn't know who is calling the edition manager and can't know what format your specific application prefers. Any ordering it may make would be wrong for a large set of developers. So, it relies on just giving back the formats in the order that they were written. Of course, if you are customizing your Subscriber dialog with your own popup, Apple recommends that you order the popup (or list, or whatever) to suit the needs of your application best, defaulting to your "best" format; however, there is no way to enforce this. The enhanced subscriber dialogs design is/are up to individual developers. SetEditionFormatMark's setMarkTo parameterDate Written: 7/29/91 Last reviewed: 6/14/93 How is ___ The The answer to your third question is "kinda." You can almost think of the separate editions in a edition container file as accessible the same way a normal data fork is, but you have to remember that you must work with the Edition Manager calls to make sure this works. The edition container format mark for a format does NOT relate at all to the
actual mark the File Manager is using in the data fork. The Edition Manager
does its own translation from Edition Manager mark to logical file mark when
you make a This is necessary to allow the Edition Manager room to expand. By having the Edition Manager make the conversions, you achieve two things: 1) The header in the ECF can be modified, extended or shortened anytime, and no applications are dependent on the "real" file mark. 2) You as an application don't have to worry about another format being added to the ECF while you are reading another one. Say the EDF currently has two formats, a 1K PICT at the beginning of the file, and a 2K TEXT after it. You are reading the TEXT 50 bytes at a time (for some reason or other). While you are doing that, the publisher updates the 'PICT'. The TEXT is held in a buffer, because the EM knows that someone is reading it. But the PICT can be written now, even if its size changes, and the Edition Manager just changes its offset to the mark for the TEXT. You as the application still continue to use the same mark; the size of the file changed but you did not have to be aware of it. So you can manage reading formats yourself, you can "batch" in a large format (or write it out in chunks) but you have to use Edition Manager read and write calls to do it, not File Manager calls. Apple 'cncl' section cancel eventDate Written: 8/23/91 Last reviewed: 6/14/93 When will the "section cancel" Apple event be implemented in the future so the system can send it? I've implemented it, but because it's hard to tell it, I'm tempted to take it out, unless you can give me a good reason to leave it in. ___ There's no indication when this event will be implemented by the system. The 'cncl' event is primarily in there for applications to facilitate scripting compatibility, not for system use. Since Apple is encouraging all applications to send Apple events to themselves in response to user actions, the 'cncl' event is provided for completeness and user understanding. When scripting systems become more prevalent, then the 'cncl' (and other events) will make a lot more sense, since a scripter can then record (or a user scripting tool generate) a section cancel event and keep it in an Apple event script. Checking for registered sectionsDate Written: 10/23/91 Last reviewed: 6/14/93 Inside Macintosh states. "...your application must keep its own list of
registered sections for each open document that contains sections." Which
___ Checking the error codes is always a good idea, but the Downloadables
|
|