Incorporates the dropped content into the collection view.
- macOS 10.11+
The collection view receiving the dropped content.
The information about the drag operation.
The index path at which the drop occurred. Use this location as the insertion point for the content.
The type of drop operation to perform.
YES if the drop operation should be accepted or
NO if it should be rejected.
The collection view calls this method when the user releases the mouse button while it is over a valid drop target. This method is called after the
collection method validates that dropping the content at the specified location is possible. You must implement this method to accept the dropped content and incorporate it into the collection view.
In your implementation, use the information in the
dragging parameter to retrieve the data, update your data source object, and insert the appropriate items into the collection view. The dropped data is stored in the
dragging property of the dragging information object.
animates property of the dragging information is
YES, update the image and frame for each dragged item to its new location in the collection view. You can enumerate the list of dragged items using the
enumerate method of the dragging information object.