Re: KVO and Core data
Re: KVO and Core data
- Subject: Re: KVO and Core data
- From: Dave Fernandes <email@hidden>
- Date: Mon, 9 Aug 2010 12:38:58 -0400
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 (email@hidden)
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:
This email sent to email@hidden