MVC....brief question
MVC....brief question
- Subject: MVC....brief question
- From: Michael de Haan <email@hidden>
- Date: Tue, 7 Jul 2009 05:31:29 -0700
Hi all,
I have just completed my first little cocoa app.
Please, one brief question.
The app follows ( or tries to) the MVC model, using bindings. ( A
view, a single NSObjectController, and a model)
I also used the method
+ (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? (in a sense
it "enables" the getter "bmi". )
Apologies if this has previously been asked, or if there is a ref to
this...I was not able to find it, but will gladly look if there is one.
Thanks in advance.
_______________________________________________
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