Re: MVC Theory Question
Re: MVC Theory Question
- Subject: Re: MVC Theory Question
- From: Mike Abdullah <email@hidden>
- Date: Thu, 29 Dec 2011 16:25:45 +0000
On 28 Dec 2011, at 17:05, 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?
Key-Value-Validation is a pretty good example of this. The model is *capable* of validating itself, but that validation must be triggered by a higher layer, such as a controller.
_______________________________________________
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