Enumerates through each dragging item.
- macOS 10.7+
The enumeration options. See
NSDraggingfor the supported values.
Item Enumeration Options
The view used as the base coordinate system for the
An array of class objects.
The classes should appear in the array in the order the preferred order of representation. Classes in the array must conform to the
A dictionary that specifies options to refine the search for pasteboard items, for example to restrict the search to file URLs with particular content types. For valid dictionary keys, see
The block executed for the enumeration.
The block takes three arguments:
A reference to the dragging item. The
draggingof the dragging item is in the coordinate space of the view specified in by
nilmeans the screen coordinate space.
The index of the element in the classes.
A reference to a Boolean value that the block can use to stop the enumeration by setting *stop to
true; it should not touch *stop otherwise.
Classes in the provided array must implement the
NSPasteboard protocol. Cocoa classes that implement this protocol include
NSPasteboard. For every item on the pasteboard, each class in the provided array will be queried for the types it can read using
readable. An instance is created of the first class found in the provided array whose readable types match a conforming type contained in that pasteboard item. Any instances that could be created from pasteboard item data is returned to the caller. Additional options, such as restricting the search to file URLs with particular content types, can be specified with the
options dictionary. Only objects of the requested classes are returned. You can always ensure to receive one object per item on the pasteboard by including the
NSPasteboard class in the array of classes.
This method enumerates the items on the dragging pasteboard associated with this dragging info, as well as all the additional data the dragging info knows about. The pasteboard data and the additional data is represented as one logical unit, an
For every item on the pasteboard, each class in
class will be queried for the types it can read using
readable. An instance will be created of the first class found in the provided array whose readable types match a conforming type contained in that pasteboard item. If an instance is created from the pasteboard item data, it is placed into an
NSDragging along with the dragging properties of that item such as the dragging image. The
NSDragging instance is then passed as a parameter to the provided block.