---
title: "browser(_:canDragRowsWith:inColumn:with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbrowserdelegate/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.

## Declaration

```swift
@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

Return Value true to allow the drag operation; false to disallow it.

## See Also

### Related Documentation

- [canDragRows(with:inColumn:with:)](appkit/nsbrowser/candragrows(with:incolumn:with:).md)

### Dragging

- [browser(_:draggingImageForRowsWith:inColumn:with:offset:)](appkit/nsbrowserdelegate/browser(_:draggingimageforrowswith:incolumn:with:offset:).md)
- [browser(_:validateDrop:proposedRow:column:dropOperation:)](appkit/nsbrowserdelegate/browser(_:validatedrop:proposedrow:column:dropoperation:).md)
- [browser(_:acceptDrop:atRow:column:dropOperation:)](appkit/nsbrowserdelegate/browser(_:acceptdrop:atrow:column:dropoperation:).md)
- [browser(_:writeRowsWith:inColumn:to:)](appkit/nsbrowserdelegate/browser(_:writerowswith:incolumn:to:).md)
- [browser(_:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWith:inColumn:)](appkit/nsbrowserdelegate/browser(_:namesofpromisedfilesdroppedatdestination:fordraggedrowswith:incolumn:).md)
