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

# browser(_:writeRowsWith:inColumn:to:)

Determines whether a drag operation can proceed. This method is required for a browser to be a drag source.

```
@MainActor optional func browser(_ browser: NSBrowser, writeRowsWith rowIndexes: IndexSet, inColumn column: Int, to pasteboard: NSPasteboard) -> Bool
```

## Parameters

`browser`

The browser.

`rowIndexes`

The indexes of the rows the user is dragging.

`column`

The index of the column containing the dragged rows.

`pasteboard`

The pasteboard containing the content from the dragged rows.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> to allow the dragging operation to proceed (see discussion for further details); <doc://com.apple.documentation/documentation/Swift/false> to disallow it.

## Discussion

This method is called after a drag operation has been allowed to start ([`browser(_:canDragRowsWith:inColumn:with:)`](/documentation/AppKit/NSBrowserDelegate/browser(_:canDragRowsWith:inColumn:with:)) returns <doc://com.apple.documentation/documentation/Swift/true>), but before it actually begins.

---

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)