Re: MVC....brief question
Re: MVC....brief question
- Subject: Re: MVC....brief question
- From: Keary Suska <email@hidden>
- Date: Tue, 7 Jul 2009 08:16:55 -0600
On Jul 7, 2009, at 6:31 AM, Michael de Haan wrote:
+ (NSSet *)keyPathsForValuesAffectingBmi /* "bmi" is model Ivar */
{
return [ NSSet setWithObjects:@"weight", @"height", nil];
}
My question. I included the above method in the model, as this is
the only place available. I just wonder if this is correct?
The only appropriate location for the method is the object that has
all of the referenced properties.
(in a sense it "enables" the getter "bmi". )
Not in any sense, really. It simply tells all observers of "bmi" that
"bmi" has changed every time "weight" or "height" changes.
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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