MVC and UI design

RussSchultz

Professional Malcontent
Veteran
I've been struggling with the MVC pattern and how it can apply to the typical UIs I deal with.

Take cell phones, for example. How does the MVC idea fit into that?

Also, how do menus fit into MVC? (Li,e the "File" menu of your browser) Is the menu part of the M, the V, or the C? When the user chooses "Print" from the menu, is the resultant popup part of the M, V, or C?

Or am I getting too wrapped up around the purity of the concept and should just accept that there's deviations in a normal application.
 
RussSchultz said:
I've been struggling with the MVC pattern and how it can apply to the typical UIs I deal with.

Take cell phones, for example. How does the MVC idea fit into that?

Also, how do menus fit into MVC? (Li,e the "File" menu of your browser) Is the menu part of the M, the V, or the C? When the user chooses "Print" from the menu, is the resultant popup part of the M, V, or C?

Or am I getting too wrapped up around the purity of the concept and should just accept that there's deviations in a normal application.
For those who dont know what MVC is:
http://www.phpwact.org/pattern/model_view_controller
http://www.dracoware.com/blog/2006/06/21/an-introduction-to-model-view-controller
 
RussSchultz said:
Or am I getting too wrapped up around the purity of the concept and should just accept that there's deviations in a normal application.
That pretty much sums up my stance on it. For real applications, things usually don't separate that nicely.
There's also a fair amount of documentation on this at Apple Developer Relations, which might be worth looking at, as most of the principles are platform agnostic.
 
Yeah I am learnign Spring at the moment...it takes a bit of time having grown up on OOP to get to AOP...not as easy as just simply switching one alphabet around I guess...
 
Back
Top