Skip navigation.
 
mlRe: Model Key path for @sum of attribute of related entity
FROM : Stefan
DATE : Tue Aug 08 18:51:25 2006

Since no one answered, let me simplify my question. Can I use

   ac2tr.@sum.val

as Model Key Path of a 'value' binding of a NSTableView column?

If this isn't possible, could you propose another way to reach this
level of indirection?

Am 08.08.2006 um 01:02 schrieb Stefan:

> Forgot this: 'ac2tr.@sum.val' is the Model Key Path of a 
> NSTableView column's value binding.
>
> The mentioned messages appears only once, when I open the 
> respective window
> first. The table gets not filled.
>
> If I resize the window - and thus the embedded NSTableView - the
> table updates is data fine. Each sum of all referenced 'tr' entities
> gets calculated.
>
> Am 07.08.2006 um 18:39 schrieb Stefan:
>

>> How to I get the sum of attribute 'val' of entity 'tr' related to 
>> entity 'ac'.
>>
>> 'ac' relates to 'tr' using the attribute 'ac2tr'.
>>
>> Using 'arrangedObjects' for an 'ac' NSArrayController, I tried
>>
>>     ac2tr.@sum.val
>>
>> and got this error message:
>>
>>     [<_NSFaultingMutableSet 0x3c42e0> 
>> addObserver:forKeyPath:options:context:]
>>     is not supported. Key path: @sum. val

>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/seaside.<email_removed>
>
> This email sent to seaside.<email_removed>

Related mailsAuthorDate
mlModel Key path for @sum of attribute of related entity Stefan Aug 7, 18:39
mlRe: Model Key path for @sum of attribute of related entity Stefan Aug 8, 01:02
mlRe: Model Key path for @sum of attribute of related entity Stefan Aug 8, 18:51