Re: Controllers and Business Rules
Re: Controllers and Business Rules
- Subject: Re: Controllers and Business Rules
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 29 Sep 2004 00:44:47 -0700
On Sep 28, 2004, at 9:50 PM, Joseph Jones wrote:
In the MVC setup prior to Cocoa bindings, Business rules enforcement
was
done (or was recommended to be done in) the document.
Umm, no, business logic (as I understand the term) belongs in the model
objects...
This held not only
your data but the rules behind access and modification of the data.
In the brave new world of Bindings, we have new classes that are used
to
handle model modification (NSController and it's subclasses). Since the
controllers allow direct modification they seem to separate the
Business
rule enforcement from the document but where does it go now?
The role of the controller is to mediate between the view and the
model. It is the role of the model to encapsulate your core business
logic.
See (slightly obscure reference, but relevant):
<http://developer.apple.com/documentation/WebObjects/UsingEOModeler/
index.html>
mmalc
_______________________________________________
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