Re: Use of KVC Array operators

2010-03-16 Thread Aaron Burghardt
On Mar 12, 2010, at 6:13 PM, Eli Bach wrote: > It's not a problem. In retrospect, doing this would mean that KVO would need > to automagically observe two 'levels' for changes, which seems to me to be > unlikely for KVO to do. > > I've decided to short-circuit the problem by adding a direct r

Re: Use of KVC Array operators

2010-03-12 Thread Eli Bach
On Mar 12, 2010, at 3:40 PM, Alexander Spohr wrote: > Maybe you can not bind that way. I have more experience using KVC than KVO. > KVC should work that way. > > Sorry to have bothered you, > > atze > It's not a problem. In retrospect, doing this would mean that KVO would need to aut

Re: Use of KVC Array operators

2010-03-12 Thread Alexander Spohr
Am 12.03.2010 um 21:06 schrieb Eli Bach: > On Mar 12, 2010, at 12:19 PM, Eli Bach wrote: > >> And I did just try it, and got a binding error: >> >> Cocoa Bindings: Error setting value for bound property instanceOfA of object >> : [<_NSFaultingMutableSet 0x1006eab90> >> addObserver:forKeyPath:

Re: Use of KVC Array operators

2010-03-12 Thread Eli Bach
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

Re: Use of KVC Array operators

2010-03-12 Thread Eli Bach
On Mar 12, 2010, at 9:58 AM, Alexander Spohr wrote: >> I'll try this, but I don't expect it to work, because there can be 0 or more >> relationB object's, and each of those object's can have 0 or more relationC >> objects, and just 'plain' dot syntax won't produce a superset of relationC >> ob

Re: Use of KVC Array operators

2010-03-12 Thread Alexander Spohr
Am 12.03.2010 um 17:32 schrieb Eli Bach: > On Mar 12, 2010, at 5:37 AM, Alexander Spohr wrote: > >> Am 12.03.2010 um 04:34 schrieb Eli Bach: >> >>> The operators mentioned on this page, particularly "@unionOfSets". >>> >>>

Re: Use of KVC Array operators

2010-03-12 Thread Eli Bach
On Mar 12, 2010, at 5:37 AM, Alexander Spohr wrote: > Am 12.03.2010 um 04:34 schrieb Eli Bach: > >> The operators mentioned on this page, particularly "@unionOfSets". >> >> >> >>

Re: Use of KVC Array operators

2010-03-12 Thread Alexander Spohr
Am 12.03.2010 um 04:34 schrieb Eli Bach: > The operators mentioned on this page, particularly "@unionOfSets". > > > > I have the following Core Data object's setup > > ClassA

Use of KVC Array operators

2010-03-11 Thread Eli Bach
The operators mentioned on this page, particularly "@unionOfSets". I have the following Core Data object's setup ClassA ClassB ClassC relationA --> relationB --