| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On 30. Jul 2004, at 21:34, Steve Sims wrote:
For example one thing that I wanted to do was react to changes in any key within a "container" object inside my model. Observing for changes in "container" don't work - you need to observe for "container.key1", "container.key2" and "container.key3". This didn't make sense to me, since if "container.key1" changes then logically "container" has changed too by my way of thinking. Which reminds me, I should file an enhancement request on that one.
Not really feasible, e.g.:
id obj = [NSMutableDictionary dictionary];
[array1 addObject:obj]; // ivar
[array2 addObject:obj]; // ivar
[obj setValue:foo forKey:@"bar"];
This should then generate change notifications for both array1 and array2, and since someone may have the object holding the arrays as ivar, another change notification should then be generated for that object a.s.o., so this will cascade beyond control (not to forget that the actual object changed, rarely have back-links to follow for these notifications to be sent).
| References: | |
| >The problem with bindings (From: Drew McCormack <email@hidden>) | |
| >Re: The problem with bindings (From: Steve Sims <email@hidden>) | |
| >Re: The problem with bindings (From: Gwynne <email@hidden>) | |
| >Re: The problem with bindings (From: Steve Sims <email@hidden>) | |
| >Re: The problem with bindings (From: Allan Odgaard <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.