Skip to content

Instantly share code, notes, and snippets.

@danielwestendorf
Created May 27, 2011 19:50
Show Gist options
  • Save danielwestendorf/996017 to your computer and use it in GitHub Desktop.
Save danielwestendorf/996017 to your computer and use it in GitHub Desktop.
def tableView(aView, validateDrop:info, proposedRow:row, proposedDropOperation:op)
if op == NSTableViewDropAbove #is the proposed row going to be dropped between rows?
return NSDragOperationEvery
else
return NSDragOperationNone #it isn't between rows, deny the proposed drop
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment