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

## Declaration

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

Return Value An image representing the visible rows identified by rowIndexes.

## See Also

### Related Documentation

- [draggingImageForRows(with:inColumn:with:offset:)](appkit/nsbrowser/draggingimageforrows(with:incolumn:with:offset:).md)

### Dragging

- [browser(_:canDragRowsWith:inColumn:with:)](appkit/nsbrowserdelegate/browser(_:candragrowswith:incolumn:with:).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)
