selectionDidChange

I’ve just discovered an unwelcome difference between func tableViewSelectionDidChange(_ notification: Notification) and func outlineViewSelectionDidChange(_ notification: Notification) (NSOutlineView inherits from NSTableView, and the protocols share a lot of similarities). When there is no valid selection in an NSOutlineView, outlineviewSelectionDidChange fires, and outlineView.selectedRow is -1. When there is no valid selection in an NSTableView, tableViewSelectionDidChange does not […]