<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDraggingSession/draggingLeaderIndex",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDraggingSession(py)draggingLeaderIndex"
  },
  "title" : "draggingLeaderIndex"
}
-->

# draggingLeaderIndex

The index of the dragging item under the cursor.

```
var draggingLeaderIndex: Int { get set }
```

## Discussion

The index is to an element in the array passed as the first parameter to the [`NSView`](/documentation/AppKit/NSView) method [`beginDraggingSession(with:event:source:)`](/documentation/AppKit/NSView/beginDraggingSession(with:event:source:)).

The default is the [`NSDraggingItem`](/documentation/AppKit/NSDraggingItem) closest to the `location` field in the event parameter that was passed to the [`beginDraggingSession(with:event:source:)`](/documentation/AppKit/NSView/beginDraggingSession(with:event:source:)) method.

---

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)