Important: The information in this document is obsolete and should not be used for new development.
Chapter 9 -
This chapter describes the components of MacApp's of drag-and-drop support, then shows how to
Drag and Drop
- initialize MacApp drag-and-drop support
- perform a drag operation
- perform a drop operation
- manipulate drag data efficiently
Chapter Contents
- Overview
- Drag-and-Drop Initialization
- Initializing the Drag Session Object
- Initializing View Drag Data
- Performing a Drag Operation
- Setting the Drag Cursor
- Performing a Drag
- Supplying Drag Data
- Supplying a Drag Outline Region
- Starting the Drag Session
- Performing a Drop Operation
- Registering to Receive a Drop
- Reacting to Drag Manager Callbacks
- Determining the Target of a Drop
- Providing Visual Feedback for a Drop
- Performing a Drop
- Creating Drag-and-Drop Commands
- Posting the Command
- Linked Commands
- Working With Drag Data
- CDragItemIterator
- How Data Is Represented
- When a View Should Accept a Drop
- TDragItem
- Promising Data
- Fulfilling Promises
- Drag Copy Versus Drag Move
- Move Families
- Move Relationships
- Forcing a Copy
- Summary