MVC Architecture The Model-View-Controller (MVC) design pattern assigns objects inan application one of three roles. Model Object. View Object. Control Object. The pattern defines not only the roles objects play in the application, it defines the way objects communicate with each other. MVC is central to a good design for a Cocoa application.
AdvantagesMVC is central to a good design for a Cocoa application.The benefits of adopting this pattern are numerous. Many Objects are reusable. Reusability of the code. Applications which implemented MVC design are more extensible than the other applications. Many Cocoa technologies and architectures are based on MVC.
Model ObjectsModel Objects define the logic and computation thatmanipulate and process the data.For example, a model object might represent a characterin a game or a contact in an address book.
View objectsA view object is an object in an application that users cansee.A view object knows how to draw itself and can respond touser actions.A major purpose of view objects is to display data from theapplication’s model objects and to enable the editing ofthat data.
Controller ObjectsA controller object acts as an intermediary between one ormore of an application’s view objects and one or more ofits model objects.