| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On 31. Jul 2004, at 1:34, Steve Sims wrote:
Let's take a couple of real examples here to illustrate what I'm after.
[...]
Okay, so you only want the cascade when explicitly doing:
[fontParams setValue:newWidth forKeyPath:@"size.width"];
But not when doing:
[[fontParams valueForKey:@"size"] setValue:newWidth forKey:@"width"];
I am not sure if you can always enforce the former to happen.
For example with the views which manage multiple values (menus/comboboxes, tables and the matrix), there is both a content and a contentValues binding, and I am quite sure the view will do something similar to the latter line above -- though probably these views could be changed to manually ensure that change notifications are sent for each component in the key paths.
[...] Right now my UI works by binding to a derived value within my data model, and I use manual observer notification in the setter methods of the dependent keys.
Are you aware of setKeys:triggerChangeNotificationsForDependentKey:? That should probably remove your need for manual observers.
| 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>) | |
| >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.