开发者

Cocoa binding with @sum value of child

开发者 https://www.devze.com 2022-12-12 10:30 出处:网络
I\'m trying to have a table column to display the sum of child values using the IB. I\'m not sure if this is 开发者_运维百科doable though.

I'm trying to have a table column to display the sum of child values using the IB. I'm not sure if this is 开发者_运维百科doable though.

So I have my Core Data bind to a table and a column of "total sales amount" that should be a total of the sales of the parent object.

I'm trying to do it like this:

"departments.@distinctUnionOfSets.sales.@sum.amount" in the "Model Key Path" of the Table Column Binding in IB.

Is there any example or tutorial on how to do this.

0

精彩评论

暂无评论...
验证码 换一张
取 消