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

This section explains how you can use the Scrap Manager to support copy-and-paste operations in your application. In particular, this section explains how you can

The Scrap Manager uses the services of the Translation Manager (if it's available). To determine whether the Scrap Manager can use the Translation Manager, call the Gestalt function with the gestaltScrapMgrAttr selector and check
the value of the response parameter. If the bit indicated by the constant gestaltScrapMgrTranslationAware is set, then the Scrap Manager uses the Translation Manager when needed to translate scrap format types.

CONST
gestaltScrapMgrAttr              = 'scra';{Gestalt selector for }
                                          { Scrap Mgr attributes}
gestaltScrapMgrTranslationAware  = 0;     {check this bit in the }
                                          { response parameter }

Subtopics
Getting Information About the Scrap
Putting Data in the Scrap
Getting Data From the Scrap
Converting Data Between a Private Scrap and the Scrap
Converting Data Between the TextEdit Scrap and the Scrap
Handling Editing Operations in Dialog Boxes

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996