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


In macOS 10.7 and later NSDragging​Source 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.


Dragging Session Operation

Dragging Session Modifier Keys

func ignore​Modifier​Keys(for:​ NSDragging​Session)

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

Dragging Options

func names​Of​Promised​Files​Dropped(at​Destination:​ URL)

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


See Also