Validates the specified location to see if it is a valid drop target.
- macOS 10.6+
The collection view that send the message.
An object containing details about this dragging operation.
The proposed drop index. This parameter is passed by-reference and can be modified retarget the drop operation.
The proposed drop operation. This parameter is passed by-reference and can be modified to change the drop operation.
A value that indicates which dragging operation to perform. Return
none to disallow the drop.
Based on the mouse position, the collection view will suggest a proposed index and drop operation. These values are in/out parameters and can be changed by the delegate to retarget the drop operation.
The collection view will propose
NSCollection when the dragging location is closer to the middle of the item than either of its edges. Otherwise, it will propose
NSCollection. You may override this default behavior by changing
To receive drag messages, you must first send
register to the collection view with the drag types you want to support.
You must implement this method for your collection view to be a drag destination.