Re: Core Data: binding to a sum
Re: Core Data: binding to a sum
- Subject: Re: Core Data: binding to a sum
- From: David Catmull <email@hidden>
- Date: Wed, 7 Apr 2010 20:29:18 -0700
On Apr 7, 2010, at 10:19 AM, Keary Suska wrote:
> On Apr 7, 2010, at 9:14 AM, David Catmull wrote:
>> ..so I take it the particular NSSet variant used by Core Data doesn't support observing @sum. Or did I do that wrong?
>
> Yes, because you are trying to observe an element of a set. Same goes for arrays. Instead, add an array controller whose content is bound to "items", and bind to arrangedObjects->@sum.limit.
Thanks! I'm used to just thinking of array controllers as a way to feed table views. This did the trick.
David Catmull
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden