Contents

browser(_:canDragRowsWith:inColumn:with:)

Sent to the delegate to determine whether the browser can attempt to initiate a drag of the specified rows for the specified event.

Declaration

@MainActor optional func browser(_ browser: NSBrowser, canDragRowsWith rowIndexes: IndexSet, inColumn column: Int, with event: NSEvent) -> Bool

Parameters

  • browser:

    The browser.

  • rowIndexes:

    The rows the user is dragging.

  • column:

    The column containing the rows the user is dragging.

  • event:

    The drag event.

Return Value

true to allow the drag operation; false to disallow it.

See Also

Related Documentation

Dragging