MVC

Terms from Human Computer Interaction the Basics

The glossary is in progress.

MVC (model-view-controller) is a user interface architecture developed as part of the Smalltalk programming environment. It has been highly influential and most user interface toolkits use some variant of MVC. Each widget or component in the user inteface manages its own state and is split into three objects:
model
This manages the state of the component.
view
This is responsible for rendering the state in the user interface, for example, showing a set of x,y values as a graph. It uses an observer pattern reacting to state-change events generated by the model
controller
This manages the meaning of user input, asking the model to perform any necessary state updates

In practuce the controller needs to know a lot about the view, for example which graph ppints are close to the mouse cursor. In many frameworks they are closely interrelated, effectuvey leading to a two part M+VC architecture.

Also known as: model-view-controller, controller, model, view

Used in glossary entries: observer pattern, Smalltalk, user interface architecture, widget

MVC architecture