On Mar 12, 2010, at 12:19 PM, Eli Bach wrote:

> 
> On Mar 12, 2010, at 9:58 AM, Alexander Spohr wrote:
> 
>> 
>> what is your understanding of KVC?
> 
> That it wouldn't do this merging of set's automatically.
> 
> And I did just try it, and got a binding error:
> 
> Cocoa Bindings: Error setting value for bound property instanceOfA of object 
> <controllerclass: 0x100675780>: [<_NSFaultingMutableSet 0x1006eab90> 
> addObserver:forKeyPath:options:context:] is not supported. Key path: relationC
> 
> I figured it would be something like this, which is why I was looking at the 
> @unionOfSets operator in particular (as that's exactly what this is, a union 
> of all sets of relationC objects from a set of relationB objects.

And to follow up, I tried both

instanceo...@unionofsets.relationb.relationc

and

instanceofa.relatio...@unionofsets.relationc

and as an NSArrayControllers array binding [as the documentation says that 
@unionOfSets returns an array], and both resulted in a binding error at runtime.

Eli

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to