• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Controllers and Business Rules
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Controllers and Business Rules (From: Joseph Jones <email@hidden>)

  • Prev by Date: Cocoa WBXML Parsing
  • Next by Date: Re: Controllers and Business Rules
  • Previous by thread: Controllers and Business Rules
  • Next by thread: Re: Controllers and Business Rules
  • Index(es):
    • Date
    • Thread