I have an NSOutlineView
bound to an NSTreeController
. In the outlineView's delegate, I found that the method outlineViewSelectionDidChange(_ notification: Notification)
got called twice when (1) there was a row selected and (2) clicked the title row to collase the group.
The selected rows are both -1. The doc of this method doesn't mention this behaviour.
Is there a way to save one of the two calls?