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

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

```
@MainActor optional func browser(_ browser: NSBrowser, canDragRowsWith rowIndexes: IndexSet, inColumn column: Int, with event: NSEvent) -> Bool
```

## Parameters

`browser`

The browser.

`rowIndexes`

The rows the user is dragging.

`column`

The column containing the rows the user is dragging.

`event`

The drag event.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> to allow the drag operation; <doc://com.apple.documentation/documentation/Swift/false> to disallow it.

## See Also

[`canDragRows(with:inColumn:with:)`](/documentation/AppKit/NSBrowser/canDragRows(with:inColumn:with:))

Indicates whether the browser can attempt to initiate a drag of the given rows for the given 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)