NSPopupButton in view based NSTableView: getting bindings to work

前端 未结 4 837
北海茫月
北海茫月 2021-02-06 10:44

Problem Description

I\'m trying to achieve something that should be simple and fairly common: having a bindings populated NSPopupButton inside bindings populated NSTab

4条回答
  •  野性不改
    2021-02-06 11:16

    I had the same problem. I've put a sample project showing this is possible on Github.

    Someone suggested a workaround using an IBOutlet property to the Authors array controller but this doesn't seem to work for me either.

    This is the approach that did work for me, and that is demonstrated in the sample project. The missing bit of the puzzle is that that IBOutlet to the array controller needs to be in the class that provides the TableView's delegate.

提交回复
热议问题