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

# canDragRows(with:inColumn:with:)

Indicates whether the browser can attempt to initiate a drag of the given rows for the given event.

```
func canDragRows(with rowIndexes: IndexSet, inColumn column: Int, with event: NSEvent) -> Bool
```

## Parameters

`rowIndexes`

Rows the user is dragging

`column`

Column containing the rows the user is dragging.

`event`

Mouse-drag event.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> when `rowIndexes` identifies at least one row and all the identified rows are enabled; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## See Also

[`browser(_:canDragRowsWith:inColumn:with:)`](/documentation/AppKit/NSBrowserDelegate/browser(_:canDragRowsWith:inColumn:with:))

Sent to the delegate to determine whether the browser can attempt to initiate a drag of the specified rows for the specified event.



---

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)