Re: Inter-class Dependent Keys
Re: Inter-class Dependent Keys
- Subject: Re: Inter-class Dependent Keys
- From: Jonathon Mah <email@hidden>
- Date: Sun, 6 Mar 2005 01:22:57 +1030
On 6 Mar 2005, at 00:43, Ricky Sharp wrote:
A common example is one where your model has two properties: lastName
and firstName. Along with supplying accessors for those properties,
it also supplies a getter for a fullName (derived) property. Since
fullName depends on both lastName and firstName, you'd do this
(typically within your model's +initialize):
I understand this. I'm comfortable with +[NSObject
setKeys:triggerChangeNotificationsForDependentKey:]. It works within a
class. The situation I'm trying to work out is, for example, when
firstName and lastName are stored in one class, and fullName (the
dependent key) in a different class.
Jonathon Mah
email@hidden
_______________________________________________
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