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 / Using the Scrap Manager


Getting Information About the Scrap

To get information about the scrap, you can use the InfoScrap function. The InfoScrap function returns a pointer to a scrap information record. (See "The Scrap Information Record" on page 2-32 for detailed information on the fields of this record.) The information in the scrap information record provides

For example, this code uses the InfoScrap function to get the size of the scrap.

VAR
   curScrapInfoPtr:  PScrapStuff;
   curScrapSize:     LongInt;

   curScrapInfoPtr := InfoScrap;
   curScrapSize := curScrapInfoPtr^.scrapSize;

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996