Important: The information in this document is obsolete and should not be used for new development.
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
- get information about the current contents of the scrap
- handle the Cut and Copy commands
- respond to suspend events
- handle the Paste command
- respond to resume events
- use TextEdit to support the editing commands
- support copying and pasting of data in dialog boxes
Gestalt
function with thegestaltScrapMgrAttr
selector and check
the value of theresponse
parameter. If the bit indicated by the constantgestaltScrapMgrTranslationAware
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