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: Programmer's Guide to MacApp / Part 2 - Working With MacApp
Chapter 28 - Working With Drag and Drop


Overview

A MacApp application can drag and drop data within a view, between views, and between itself and other applications that support drag and drop of similar data types. MacApp's drag-and-drop support relies on the Macintosh Drag Manager. The Drag Manager is integrated into System 7.5 and later versions of the Macintosh Operating System. Releases of System 7 before version 7.5 require the addition of the Macintosh Drag and Drop extension.

A global TDragDropSession object manages communication with the Drag Manager during drag-and-drop operations. A view that supports dropping registers with its window, and the window registers with the global drag session object.

MacApp's TView class contains fields and methods that provide the building blocks for MacApp's drag-and-drop support. Several subclasses of TView support drag and drop for the data types they display:

Your application must enable dragging or dropping for these views as it does for view subclasses you define. For more information, see "Recipe--Turning on Drag-and-Drop Support for a View," beginning on page 610.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
25 JUL 1996