To change the NSOutlineView
sidebar highlight colour, NSTableRow
needs to be subclassed with an override func drawSelectionInRect
. How is this possible when there is currently no exposed reference to NSTableRow
in code?
func outlineView(outlineView: NSOutlineView, viewForTableColumn: NSTableColumn?, item: AnyObject) -> NSView? {
}
Perhaps there is potential in using a simpler solution with the emphazised
property
func outlineViewSelectionDidChange(notification: NSNotification){
let selectedIndex = notification.object?.selectedRow
let object:AnyObject? = notification.object?.itemAtRow(selectedIndex!)
notification.object?.rowViewAtRow(selectedIndex!, makeIfNecessary: false)?.emphasized = false
outlineView.deselectRow(selectedIndex!)