Instance Property

draggingFrame

Returns the frame of the dragging item.

Declaration

var draggingFrame: NSRect { get set }

Discussion

The dragging frame provides the spatial relationship between NSDraggingItem instances when the dragging formation is set to NSDraggingFormation.none.

The exact coordinate space of this rectangle depends on where it is used. Examples are the view that initiated the drag using beginDraggingSession(with:event:source:) or the view you pass to the NSDraggingSession implementation of enumerateDraggingItems(options:for:classes:searchOptions:using:).

See Also

Dragging Frame

func setDraggingFrame(NSRect, contents: Any?)

Sets the item’s dragging frame and contents.