I have an outline view with 2 entities being displayed inside it so It is connected to a NSTreeController. I have created a button and binded it to the NSTreeController’s Controller Key ‘canRemove’ under Availability>Enabled. But when you run the App the button is always Disabled even when a row is selected in the Outline View. How can this be fixed to work and remove the selected row in the Outline view?
Share
You need to set the button’s target to the tree controller, and its action to
remove:. This is easy in IB: Right-click on the tree controller, then drag from itsremove:action (specifically, from the circle at the right edge of the row) to the Remove button.