Jan 31 2017
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 […]
Aug 7 2020
NSOutlineView: Saving expansion status
(This is not the promised Part III of my previous series. Which is not fully functional and needs an overhaul, but right now, I am lacking time.) In most cases, users expect to find outline views as they left them. So I needed a different solution. Whether an item is expanded or not is, strictly […]
By Extelligent Cocoa • Application Design, Interface • • Tags: NSOutlineView