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 / Setting and Getting a Format Mark


SetEditionFormatMark

A format mark indicates the next position of a read or write operation. Initially, a mark defaults to 0. After reading or writing data, the format mark is set past the last position written to or read from. To set the current mark for a given format, use the SetEditionFormatMark function.

FUNCTION SetEditionFormatMark (whichEdition: EditionRefNum;
                               whichFormat: FormatType;
                               setMarkTo: LongInt): OSErr;
whichEdition
The reference number for the edition.
whichFormat
The format type for the edition.
setMarkTo
The offset for the next read or write for this format.
DESCRIPTION
The SetEditionFormatMark function sets the current mark for the specified format type according to the value of the setMarkTo parameter.

RESULT CODES
noErr0No error
rfNumErr-51Bad edition reference number
noTypeErr-102Unknown format (subscriber only)
editionMgrInitErr-450Manager not initialized

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996