Re: Core Data: updating a key dependent on a to-many relationship?
Re: Core Data: updating a key dependent on a to-many relationship?
- Subject: Re: Core Data: updating a key dependent on a to-many relationship?
- From: zeno <email@hidden>
- Date: Tue, 21 Feb 2006 10:32:01 +0100
Ok, I built a test app, and it works.
There's still a problem I forgot though: when quitting and relaunching
the app you'll loose all the KVO you setup in the add<Key>Object, thus
you'll probably need to create a new method (called on
awakeFromFetch?) who will restore that...
Yeah, it would be definetly nice to have a more detailed explanation
to this question of the Core Data FAQ:
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdFAQ.html#//apple_ref/doc/uid/TP40001802-DontLinkElementID_14
("I have a key whose value is dependent on values of attributes in a
related entity — how do I ensure it is kept up to date as the
attribute values are changes and as the relationship is manipulated?"
-- Solution 1.)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden