私はこれをしばらくの間機能させようとしてきました。
私の Core Data モデルには次のものがあります。
エンティティは( )Companyと 1 対多の関係にありますEmployeeemployees
Company.employees
Employee.age
バインディングを使用して、tableViewemployeesをクリックしたときにすべての年齢の合計を表示したいと思います。Company
のバリエーションを試しまし@distinctUnionOfSets.employees.@sum.ageたが、動作しません。
上記を試してみると、エラーメッセージが表示されます:
[<_NSFaultingMutableSet 0x10019c430> removeObserver:forKeyPath:] is not supported. Key path: @sum.age
MyNSArrayControllerはバインドされてClientいるため、IB では次のようになります。Clients.selection.@distinctUnionOfSets.employees.@sum.age
何か案は?