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
@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:
Nszeropoint: Centers the image under the pointer.
Return Value
An image representing the visible rows identified by rowIndexes.