Places the data for the drag operation on the pasteboard.
- macOS 10.11–10.15Deprecated
The collection view making the request.
The index paths of the items being dragged.
The pasteboard on which to place the drag data.
YES if the drag operation can continue or
NO if you want to refuse the drag.
You must implement this method or the
collection method to support drag operations. The collection view calls the
collection method in preference to this one if both are implemented. If your app supports multi-image drag and drop, you must implement the
The collection view calls this method after it has determined that a drag should begin but before the drag operation has started. Your implementation of this method should do the following:
Declare the pasteboard types you support using the
declaremethod of the provided
Write data to the pasteboard for each type you declare.
YESfrom this method.