NSPopupButton in view based NSTableView: getting bindings to work

前端 未结 4 839
北海茫月
北海茫月 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

    You can try this FOUR + 1 settings for NSPopUpbutton:

    In my example, "allPersons" is equivalent to your "Authors". I have allPersons available as a property (NSArray*) in File's owner.

    Additionally, I bound the tableView delegate to File's owner. If this is not bound, I just get a default list :Item1, Item2, Item3

提交回复
热议问题