<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDraggingSource",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSDraggingSource"
  },
  "title" : "NSDraggingSource"
}
-->

# NSDraggingSource

A set of methods that are implemented by the source object in a dragging session.

```
protocol NSDraggingSource : NSObjectProtocol
```

## 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.

## Topics

### Dragging Session Operation

[`draggingSession(_:sourceOperationMaskFor:)`](/documentation/AppKit/NSDraggingSource/draggingSession(_:sourceOperationMaskFor:))

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

### Dragging Session Locations

[`draggingSession(_:willBeginAt:)`](/documentation/AppKit/NSDraggingSource/draggingSession(_:willBeginAt:))

Invoked when the drag will begin.

[`draggingSession(_:movedTo:)`](/documentation/AppKit/NSDraggingSource/draggingSession(_:movedTo:))

Invoked when the drag moves on the screen.

[`draggingSession(_:endedAt:operation:)`](/documentation/AppKit/NSDraggingSource/draggingSession(_:endedAt:operation:))

Invoked when the dragging session has completed.

### Dragging Session Modifier Keys

[`ignoreModifierKeys(for:)`](/documentation/AppKit/NSDraggingSource/ignoreModifierKeys(for:))

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

### Dragging Options

  <doc://com.apple.documentation/documentation/ObjectiveC/NSObject-swift.class/namesOfPromisedFilesDropped(atDestination:)>

## See Also

[Drag and Drop](/documentation/AppKit/drag-and-drop)

Support the direct manipulation of your app’s content using drag and drop.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)