Re: Use of KVC Array operators
Re: Use of KVC Array operators
- Subject: Re: Use of KVC Array operators
- From: Eli Bach <email@hidden>
- Date: Fri, 12 Mar 2010 13:06:15 -0700
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
email@hiddenionC
and
email@hiddenionC
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 (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