<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableView/canDragRows(with:at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTableView(im)canDragRowsWithIndexes:atPoint:"
  },
  "title" : "canDragRows(with:at:)"
}
-->

# canDragRows(with:at:)

Returns a Boolean value indicating whether the table view allows dragging the rows with the drag initiated at the specified point.

```
func canDragRows(with rowIndexes: IndexSet, at mouseDownPoint: NSPoint) -> Bool
```

## Parameters

`rowIndexes`

The row indexes to drag.

`mouseDownPoint`

The location where the drag was initiated.

## Return Value

<doc://com.apple.documentation/documentation/Swift/false> to disallow the drag.

## Discussion

---

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)