Skip navigation.
 
mlRe: Boggled By Bindings
FROM : Steven Kramer
DATE : Mon Oct 04 17:09:31 2004

Op 4-okt-04 om 13:56 heeft Patrick Machielse het volgende geschreven:

>
> I have two questions left regarding the NSArrayController
>
> (1)
>
> Why is is that automaticallyNotifiesObserversForKey:@"arrangedObjects"
> returns NO, but I can still successfully bind to 'arrangedObjects'?
>


Because the array controller performs manual notification would be my
guess.

> (2)
>
> Why does
>
>  + (void)initialize
>  {
>    [[self class] setKeys:[NSArray arrayWithObject:@"arrangedObjects"]
>                  triggerChangeNotificationsForDependentKey:@"myKey"];
>  }
>
> not work, _even_ when I override
>
>  + (BOOL)automaticallyNotifiesObserversForKey:(NSString *)key;
>
> to return YES for 'arrangedObjects'?
>
>
> Can any of you bindings-experts clarify this, or should I file a bug
> report?



I admit to a lack of bindings expertice ;-) I ran into the same problem
and ended up setting up an observer in my subclass, as was suggested by
someone else in this thread too, IIRC.

    Steven

Related mailsAuthorDate
mlBoggled By Bindings Patrick Machielse Sep 30, 22:32
mlRe: Boggled By Bindings Jacob Lukas Oct 1, 00:55
mlRe: Boggled By Bindings Scott Stevenson Oct 1, 01:14
mlRe: Boggled By Bindings Scott Stevenson Oct 1, 01:20
mlRe: Boggled By Bindings Jacob Lukas Oct 1, 01:26
mlRe: Boggled By Bindings Scott Stevenson Oct 1, 02:46
mlRe: Boggled By Bindings Jacob Lukas Oct 1, 03:09
mlRe: Boggled By Bindings Scott Stevenson Oct 1, 05:05
mlRe: Boggled By Bindings Jacob Lukas Oct 1, 08:18
mlRe: Boggled By Bindings Christian Brunsche… Oct 1, 11:03
mlRe: Boggled By Bindings Patrick Machielse Oct 1, 11:24
mlRe: Boggled By Bindings Patrick Machielse Oct 1, 13:26
mlRe: Boggled By Bindings Patrick Machielse Oct 1, 13:35
mlRe: Boggled By Bindings Eric Ocean Oct 1, 17:37
mlRe: Boggled By Bindings Scott Stevenson Oct 1, 23:38
mlRe: Boggled By Bindings Scott Stevenson Oct 1, 23:40
mlRe: Boggled By Bindings Patrick Machielse Oct 4, 13:56
mlRe: Boggled By Bindings Steven Kramer Oct 4, 17:09
mlRe: Boggled By Bindings Patrick Machielse Oct 6, 12:57
mlRe: Boggled By Bindings Steven Kramer Oct 7, 15:02