browser(_:acceptDrop:atRow:column:dropOperation:)
Sent to the delegate during a dragging session to determine whether to accept the drop.
Declaration
@MainActor optional func browser(_ browser: NSBrowser, acceptDrop info: any NSDraggingInfo, atRow row: Int, column: Int, dropOperation: NSBrowser.DropOperation) -> BoolParameters
- browser:
The browser.
- info:
The drag session information.
- row:
The drop row.
- column:
The drop column.
- dropOperation:
The drop location relative to
row.
Return Value
Discussion
This method is required for a browser to be a drag destination. It is invoked after the browser(_:validateDrop:proposedRow:column:dropOperation:) method allows the drop.
The delegate should incorporate the pasteboard data from the dragging session (info``.draggingPasteboard).