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

# browser(_:draggingImageForRowsWith:inColumn:with:offset:)

Sent to the delegate to obtain an image to represent dragged rows during a drag operation on a browser.

```
@MainActor optional func browser(_ browser: NSBrowser, draggingImageForRowsWith rowIndexes: IndexSet, inColumn column: Int, with event: NSEvent, offset dragImageOffset: NSPointPointer) -> NSImage?
```

## Parameters

`browser`

The browser.

`rowIndexes`

The indexes of the rows the user is dragging.

`column`

The column containing the rows the user is dragging.

`event`

The drag event.

`dragImageOffset`

The offset for the returned image:

- <doc://com.apple.documentation/documentation/Foundation/NSZeroPoint>: Centers the image under the pointer.

## Return Value

An image representing the visible rows identified by `rowIndexes`.

## See Also

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

Provides an image to represent dragged rows during a drag operation on the browser.



---

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)