Register the sidebar for the dragged types it accepts.

This commit is contained in:
Brent Simmons 2018-09-18 21:53:02 -07:00
parent 66c9b89a0f
commit 9e55a4da50
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ import RSCore
outlineView.dataSource = dataSource
outlineView.setDraggingSourceOperationMask(.move, forLocal: true)
outlineView.setDraggingSourceOperationMask(.copy, forLocal: false)
outlineView.registerForDraggedTypes([FeedPasteboardWriter.feedUTIInternalType, FolderPasteboardWriter.folderUTIInternalType, FeedPasteboardWriter.feedUTIType])
NotificationCenter.default.addObserver(self, selector: #selector(unreadCountDidChange(_:)), name: .UnreadCountDidChange, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(containerChildrenDidChange(_:)), name: .ChildrenDidChange, object: nil)