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 / Writing out Edition Data


WriteEdition

Use the WriteEdition function to write data to an edition. This function begins writing at the current mark for the specified format.

FUNCTION WriteEdition (whichEdition: EditionRefNum; 
                       whichFormat: FormatType; 
                       buffPtr: UNIV Ptr; buffLen: Size): OSErr;
whichEdition
The reference number for the edition.
whichFormat
The format type that you want to write.
buffPtr
A pointer to the buffer containing the data to write to the edition.
buffLen
The number of bytes that you want to write to the edition.
DESCRIPTION
The WriteEdition function writes the specified number of bytes to the edition. If the data cannot be entirely written to the edition, the WriteEdition function returns an error.

RESULT CODES
noErr0No error
dskFulErr-34Disk is full
ioErr-36I/O error
rfNumErr-51Bad edition reference number
editionMgrInitErr-450Manager not initialized
SEE ALSO
For an example that writes data to an edition, see Listing 2-5 beginning on page 2-36.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996