• 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: MVC Theory Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MVC Theory Question


  • Subject: Re: MVC Theory Question
  • From: Keary Suska <email@hidden>
  • Date: Wed, 28 Dec 2011 11:15:48 -0700

On Dec 28, 2011, at 10:05 AM, Philip McIntosh wrote:

> I am just wondering about something with respect to the Model-View-Controller (MVC) design pattern. Should any validation of input or output be done by the model class which is handling and processing the data, or is validation more properly a task to be assigned to a controller class?

I would give a qualified "yes." Usually this is the case--key-value validation exists for this purpose. Now, it is common to use formatters for validation as well, which doesn't violate MVC.

HTH,

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

References: 
 >MVC Theory Question (From: Philip McIntosh <email@hidden>)

  • Prev by Date: Re: UIControllerView demo
  • Next by Date: Re: Text system glitch - lines across text view
  • Previous by thread: MVC Theory Question
  • Next by thread: Re: MVC Theory Question
  • Index(es):
    • Date
    • Thread