Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Interapplication Communication /
Chapter 2 - Edition Manager / Edition Manager Reference
Edition Manager Routines / Displaying Dialog Boxes


GetLastEditionContainerUsed

Use the GetLastEditionContainerUsed function to get the default edition to display. This function allows a user to easily subscribe to the data recently published.

FUNCTION GetLastEditionContainerUsed 
                  (VAR container: EditionContainerSpec): OSErr;
container
If the GetLastEditionContainerUsed function locates the last edition for which a section was created, the container parameter contains its volume reference number, directory ID, filename, and part, and returns a noErr result code. (The last edition created is associated with the last time that your application or another application located on the same machine used the NewSection function.)
DESCRIPTION
If the last edition used is missing, the GetLastEditionContainerUsed function returns an fnfErr result code, but still returns the correct volume reference number and directory ID that you should use for the NewSubscriberDialog function.

Pass the information from the GetLastEditionContainerUsed function to the NewSubscriberDialog function.

RESULT CODES
noErr0No error
fnfErr-43Edition container not found
editionMgrInitErr-450Manager not initialized
SEE ALSO
For an example of the use of GetLastEditionContainerUsed, see Listing 2-6 beginning on page 2-40. For a description of the edition container record, see page 2-71. The NewSubscriberDialog function is described next.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996