EditionHasFormat
EditionHasFormat What formats are available?
#include <Editions.h> Edition Manager
OSErr EditionHasFormat( whichEdition, whichFormat,
formatSize);
EditionRefNum whichEdition ; specifies the format number
FormatType whichFormat; indicates the format type for the edition
Size * formatSize ; specifies the format length
returns Error Code; 0=no error
Use the EditionHasFormat function to learn in which formats the edition
data is available.
whichEdition specifies the reference number for the edition
whichFormat indicates the format type that you are requesting. For the
whichFormat parameter, you should decide which formats to read in
the same way that you do when using paste from the
Scrap Manager. You can also get a list of all the available formats
and their respective lengths by reading the kFormatListFormat
('fmts') format..
formatSize specifies the format length.
Returns: an operating system Error Code.
noErr (0) No error
rfNumErr (-51) Bad edition reference number
noTypeErr (-102) Format not available
editionMgrInitErr (-450) Manager not initialized

Notes: If the requested format is available, this function returns noErr, and the
formatSize parameter returns the size of the data in the specified format
or kFormatLengthUnknown (-1), which signifies that the size is unknown.
You should therefore continue to read the format until there is no more data.
Be aware that the EditionHasFormat function may return
kFormatLengthUnknown for the length of the format.