Instance Property

draggingSource

Returns the source, or owner, of the dragged data.

Required.

Declaration

var draggingSource: Any? { get }

Return Value

The source, or owner, of the dragged data.

Discussion

This method returns nil if the source is not in the same application as the destination. The dragging source implements methods from the NSDraggingSource protocol.

See Also

Obtaining Information About the Dragging Session

var draggingPasteboard: NSPasteboard

Returns the pasteboard object that holds the data being dragged.

Required.

var draggingSequenceNumber: Int

Returns a number that uniquely identifies the dragging session.

Required.

var draggingSourceOperationMask: NSDragOperation

Returns the dragging operation mask of the dragging source.

Required.

var draggingLocation: NSPoint

Returns the current location of the mouse pointer in the base coordinate system of the destination object’s window.

Required.

var draggingDestinationWindow: NSWindow?

Returns the destination window for the dragging operation.

Required.

func namesOfPromisedFilesDropped(atDestination: URL) -> [String]?

Sets the drop location for promised files and returns the names of the files that the receiver promises to create there.

Required.

Deprecated
var numberOfValidItemsForDrop: Int

Specifies the number of valid items for a drop operation.

Required.