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: More Macintosh Toolbox /
Chapter 2 - Scrap Manager / Scrap Manager Reference
Data Structures


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

Your application should support the '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 bytes
Contents
4Scrap format type
4Length of following data in bytes
nData; n must be even


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996