我只是希望能够使用 nsarraycontroller 的名为“remove:”和“add:”的方法
最佳答案
- 选择 NSTableView。如果检查器窗口的标题显示“ ScrollView ”,则需要再次单击表格 View 才能选择它。
- 在绑定(bind)选项卡中,将
Selection Indexes
绑定(bind)连接到数组 Controller 的selectionIndexes
Controller 键。这类似于将内容绑定(bind)到数组 Controller ,只不过您不使用arrangedObjects 键。
关于cocoa - 如何将 NSTableView 的选择绑定(bind)到 NSArrayController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5409447/