Important: The information in this document is obsolete and should not be used for new development.
The Scrap Format Types
Data in the scrap is defined by a scrap format type, a four-character sequence that defines the type of data.
TYPE ResType = PACKED ARRAY[1..4] OF Char;The standard scrap format types are
Optional scrap format types include
'TEXT'
: a series of ASCII characters'PICT'
: a QuickDraw picture, which is a saved sequence of QuickDraw commands that can be displayed using theDrawPicture
procedure
Your application should support the
'styl'
: a series of bytes that have the same format as a TextEdit'styl'
resource and that describe styled text data'snd '
: a series of bytes that have the same format as an'snd '
resource and that define a sound'movv'
: a series of bytes that have the same format as an'movv'
resource and that define a movie
'TEXT'
and'PICT'
scrap format types and should optionally support any other scrap format types (such as'snd '
) that are appropriate to your application.In general, when your application writes data to the scrap, the Scrap Manager appends the data to the scrap in this format:
Number
of bytesContents 4 Scrap format type 4 Length of following data in bytes n Data; n must be even