Last active
September 21, 2016 12:37
-
-
Save stevebartholomew/27b797f5eafac8b561eb to your computer and use it in GitHub Desktop.
Validate Drop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func tableView(tableView: NSTableView, validateDrop info: NSDraggingInfo, proposedRow row: Int, proposedDropOperation dropOperation: NSTableViewDropOperation) -> NSDragOperation { | |
tableView.setDropRow(row, dropOperation: NSTableViewDropOperation.Above) | |
return NSDragOperation.Move | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment