Initiates a dragging operation from the view, allowing the user to drag one or more promised files (or directories) into any application that has window or view objects that accept promised file data.
- macOS 10.0–10.13Deprecated
An array of file types being promised. The array elements can consist of file extensions and HFS types encoded with the
NSFilefunction. If promising a directory of files, only include the top directory in the array.
Type For HFSType Code
A rectangle that describes the position of the icon in the view’s coordinate system.
A Boolean that indicates whether the icon being dragged should slide back to its position in the view if the file isn’t accepted. The icon slides back to
YES, the promised files are not accepted by the dragging destination, and the user has not disabled icon animation; otherwise it simply disappears.
The mouse-down event object from which to initiate the drag operation. In particular, its mouse location is used for the offset of the icon being dragged.
YES if the drag operation is initiated successfully,
This method must be invoked only within an implementation of the
mouse method. As part of its implementation, this method invokes
Promised files are files that do not exist, yet, but that the drag source,
source, promises to create at a file system location specified by the drag destination when the drag is successfully dropped.
See Drag and Drop Programming Topics for more information on dragging operations.