0

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:

enter image description here

I put a custom button in the sourcelist like this:

enter image description here

But after that, the expansion doesn´t work anymore:

enter image description here

Would be really great to get some help.

Josch Hazard
  • 323
  • 3
  • 20
  • NSSourceList doesn't exist, do you mean NSOutlineView? – Willeke Oct 02 '17 at 20:59
  • Duplicate of [How do you customise the groupItem-look in a view-based NSOutlineView?](https://stackoverflow.com/questions/28716670/how-do-you-customise-the-groupitem-look-in-a-view-based-nsoutlineview/44047591#44047591) – Willeke Oct 02 '17 at 21:22

0 Answers0