Create stub functions for validateDrop and acceptDrop.

This commit is contained in:
Brent Simmons 2018-09-18 21:53:19 -07:00
parent 9e55a4da50
commit 2769c93c20
1 changed files with 13 additions and 1 deletions

View File

@ -47,6 +47,18 @@ import RSCore
return (node.representedObject as? PasteboardWriterOwner)?.pasteboardWriter
}
// MARK: - Drag and Drop
func outlineView(_ outlineView: NSOutlineView, validateDrop info: NSDraggingInfo, proposedItem item: Any?, proposedChildIndex index: Int) -> NSDragOperation {
// let draggingSourceOutlineView = info.draggingSource() as? NSOutlineView
// let isLocalDrop = draggingSourceOutlineView == outlineView
return NSDragOperation(rawValue: 0)
}
func outlineView(_ outlineView: NSOutlineView, acceptDrop info: NSDraggingInfo, item: Any?, childIndex index: Int) -> Bool {
return false
}
}
// MARK: - Private