2 years ago

#46782

test-img

user10711707

How to add a plus button next to the disclosure button for group row in NSOutlineView?

I would like to add a button next to the disclosure button like in Mail.app.

A screen recording of Mail.app sidebar

And I don't want to do it like this in Photos.app.

A screen recording of Photos.app sidebar

I had a look at the answers in this question but they are about customising existing disclosure buttons which I do not wish to modify. I just want to add a button next to it and not for every group item. I believe it has to be done programmatically.

I tried adding a button on storyboard and place it on the right of the NSTableCellView and the disclosure button overlap it. So I think it should not be done on storyboard.

cocoa

appkit

nsoutlineview

nsbutton

nstablecellview

0 Answers

Your Answer

Accepted video resources