A single dragged item within a dragging session.
- macOS 10.7+
NSDragging objects have extremely limited lifetimes. Do not retain these items as changing outside of the prescribed lifetimes have no impact on the drag.
begin is called, the dragging items passed to the method are consumed immediately and are not retained. Any further changes to the dragging item associated with the returned
NSDragging must be done via the enumeration method
enumerate. When enumerating,
NSDragging instances are created right before being given to the enumeration block. After returning from the block, the dragging item is no longer valid.