---
title: "browser(_:acceptDrop:atRow:column:dropOperation:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbrowserdelegate/browser(_:acceptdrop:atrow:column:dropoperation:)"
---

# browser(_:acceptDrop:atRow:column:dropOperation:)

Sent to the delegate during a dragging session to determine whether to accept the drop.

## Declaration

```swift
@MainActor optional func browser(_ browser: NSBrowser, acceptDrop info: any NSDraggingInfo, atRow row: Int, column: Int, dropOperation: NSBrowser.DropOperation) -> Bool
```

## Parameters

- `browser`: The browser.
- `info`: The drag session information.
- `row`: The drop row.
- `column`: The drop column.
- `dropOperation`: The drop location relative to row.

## Return Value

Return Value true to accept the drop; false to decline it.

## Discussion

Discussion This method is required for a browser to be a drag destination. It is invoked after the browser(_:validateDrop:proposedRow:column:dropOperation:) method allows the drop. The delegate should incorporate the pasteboard data from the dragging session (info``.draggingPasteboard).

## See Also

### Dragging

- [browser(_:canDragRowsWith:inColumn:with:)](appkit/nsbrowserdelegate/browser(_:candragrowswith:incolumn:with:).md)
- [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(_:writeRowsWith:inColumn:to:)](appkit/nsbrowserdelegate/browser(_:writerowswith:incolumn:to:).md)
- [browser(_:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWith:inColumn:)](appkit/nsbrowserdelegate/browser(_:namesofpromisedfilesdroppedatdestination:fordraggedrowswith:incolumn:).md)
