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

# draggingImageForRows(with:inColumn:with:offset:)

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

```
func draggingImageForRows(with rowIndexes: IndexSet, inColumn column: Int, with event: NSEvent, offset dragImageOffset: NSPointPointer?) -> NSImage?
```

## Parameters

`rowIndexes`

Rows the user is dragging.

`column`

Column with the rows the user is dragging.

`event`

Mouse drag event.

`dragImageOffset`

Offset for the returned image:

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

## Return Value

Image representing the visible cells identified by rowIndexes.

## See Also

[`browser(_:draggingImageForRowsWith:inColumn:with:offset:)`](/documentation/AppKit/NSBrowserDelegate/browser(_:draggingImageForRowsWith:inColumn:with:offset:))

Sent to the delegate to obtain an image to represent dragged rows during a drag operation on a 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)