0
我一直试图让这个工作一段时间。可可绑定 - 获得@sum为所有儿童的属性
在我的核心数据模型,我有:
实体Company
与Employee
(employees
)
Company.employees
Employee.age
使用绑定我想显示的年龄之和为所有employees
一个一对多的关系当在tableView中点击Company
时。
我试过变体:@[email protected]
,但无法让它工作。
当我尝试了上面我得到的错误信息: [<_NSFaultingMutableSet 0x10019c430> removeObserver:forKeyPath:] is not supported. Key path: @sum.age
我NSArrayController
势必Client
所以在IB它看起来像这样:[email protected]@sum.age
任何想法?