'Touching' managed objects properties.
'Touching' managed objects properties.
- Subject: 'Touching' managed objects properties.
- From: Óscar Morales Vivó <email@hidden>
- Date: Wed, 13 Jul 2005 22:17:49 -0400
I have a model with a Person entity that has the following attributes:
- isMale (Boolean)
- children (to-many relationship to Person)
- parents (to-many relationship to Person, inverse of children).
- father (fetched property. Retrieves the male parent).
- mother (fetched property. Retrieves the female parent).
The code already takes care of guaranteeing there's only a maximum of
a male and a female parent at the same time.
If I modify isMale, I want the children (if any) to notify that the
value of their father and mother properties have changed. However I
haven't seen any way to manually 'touch' those properties. For the
ones inside a single object I called
setKeys:triggerChangeNotificationForDependentKey (which works fine).
Right now I have it set with a call to [self setKeys:[NSArray
arrayWithObject:@"isMale"]
triggerChangeNotificationForDependentKey:@"children"] and it works
fine as far as updating the UI is concerned. But I'd like to have a
more finely granular solution.
Any help or advice?
Thanks in advance for your help:
Óscar Morales Vivó. _______________________________________________
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