On 2010-08-09, at 11:13 AM, Gideon King wrote:

> Dave's idea of using + (NSSet*)keyPathsForValuesAffecting<Key> may help in 
> some situations, but I don't think it's practical for all, especially where 
> I'm using KVO for my front end to observe changes in the back end and react, 
> where I sometimes need to know the before and after values. I'd have to think 
> about that some more...

Actually, it's particularly effective for keeping the UI updated and works with 
bindings. You provide an accessor method for your attribute and when called, 
the method first checks toOne's attributes that it depends on and then updates 
itself to be consistent before returning the new value. However, if you want 
the 'before' value, you will need your own caching/messaging in there 
somewhere. How is this information used?

Dave_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to