Skip to main content

drop_on_table

Function drop_on_table 

Source
pub fn drop_on_table(
    table: &NSTableView,
    pasteboard: &NSPasteboard,
    row: usize,
    from_table: bool,
) -> bool
Expand description

Drops whatever is on pasteboard onto table above view row row, as AppKit does at the end of a drag: the data source validates the drop, then accepts it. from_table makes the table itself the drag’s source. Returns whether the drop was accepted.