I´m trying to change the disclosure button in a NSSourceList. After a lot of research I found some suggestions written in objective-c. I tried the solutions I found here like this:
extension ViewController: NSOutlineViewDelegate {
func outlineView(_ outlineView: NSOutlineView, willDisplayOutlineCell cell: Any, for tableColumn: NSTableColumn?, item: Any) {
print("willDisplayOutlineCell")
}
}
But this functions doesn´t get called. I also tried to set a custom disclosure button in Interface Builder. Normally the result looks like this:
I put a custom button in the sourcelist like this:
But after that, the expansion doesn´t work anymore:
Would be really great to get some help.