Re: core data and dictionary
Re: core data and dictionary
- Subject: Re: core data and dictionary
- From: Cornelius Jaeger <email@hidden>
- Date: Mon, 23 May 2005 22:00:07 +0200
hi mmalc
No, you will only receive change notifications and benefit from
undo support if the whole dictionary is replaced. This is
analogous to the situation where you have an array attribute.
Observing the array is not the same as observing the individual
object in the array.
i have wondered about this in the past in an eof context.
would it be possible to register for a kvo notification and have the
keypath analysed for the beginning of the keypath rather than the
last entry in the keypath.
let's say i have the keypath
myobject.properties.foo
and i do something like
NSArray * keys =[NSArray arrayWithObjects: @"foo", @"bar", nil];
[self setKeys:keys
triggerChangeNotificationsForPrincipalKey:@"properties"];
where self is myObject
that i would receive notifications that properties.foo and
properties.bar changed?
eh, an academic excercise i guess, but it would come in handy for me.
i know this can be solved using another entity, but i come from the
server world and joins are just not great for lightweight stuff, like
storing an extra few values or dates.
thx
cornelius
_______________________________________________
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