Protocol

NSDraggingSource

The NSDraggingSource protocol declares methods that are implemented by the source object in a dragging session.

Overview

In macOS 10.7 and later NSDraggingSource is now a formal protocol and has an updated interface. The OS X v10.6 behavior has been retained, but will be dropped in a future version of the operating system. The methods that are to be deprecated are marked as such.

Symbols

Dragging Session Operation

func draggingSession(NSDraggingSession, sourceOperationMaskFor: NSDraggingContext)
Required.

Declares the types of operations the source allows to be performed.

Dragging Session Locations

Dragging Session Modifier Keys

func ignoreModifierKeys(for: NSDraggingSession)

Returns whether the modifier keys will be ignored for this dragging session.

Dragging Options

func namesOfPromisedFilesDropped(atDestination: URL)

Returns the names of the files that the receiver promises to create at a specified location.

Deprecated