Re: Acid Test For MVC Design?
Re: Acid Test For MVC Design?
- Subject: Re: Acid Test For MVC Design?
- From: Marcel Weiher <email@hidden>
- Date: Wed, 31 Jul 2002 20:36:37 +0200
On Tuesday, July 30, 2002, at 09:58 Uhr, Daniel Jalkut wrote:
The hardest part about Cocoa/ObjectiveC programming for me so far is
the unsteady footing I have on the "MVC design" paradigm. I think I
have a good notion of the approach, but sometimes I get stuck trying
to classify a certain class into one of the categories. At times, I
wish I had some kind of "key questions" to ask about the functionality
to help determine what it is. Sometimes, I think I get stuck because
the class I'm looking at inadvertently covers both model and
controller, or both view and model, or perhaps all three.
Well, the reason we need engineers is that they can make judgement
calls, because real-world situations are rarely ever as clear-cut as
you'd like them to be.
One thing I do *religiously* is to keep my Foundation and my AppKit
code separate.
Model code may only reference Foundation classes.
Only View/Controller code may refernce AppKit.
Exceptions make life interesting ;-)
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.