Invoked when the dragging images should be changed.
- macOS 10.7+
The object sending the message; use this object to get details about the dragging operation.
While a destination may change the dragging images at any time, it is recommended to wait until this method is called before updating the dragging images.
This allows the system to delay changing the dragging images until it is likely that the user will drop on this destination. Otherwise, the dragging images will change too often during the drag which would be distracting to the user.
enumerate you may set non-acceptable drag items images to
nil to hide them or use the enumeration option of
clear If there are items that you hide, then after enumeration, you need to set the
number to the number of non-hidden drag items. However, if the valid item count is
0, then it is better to return
none from your implementation of
dragging and, or
dragging instead of hiding all drag items during enumeration.