Possible Duplicate:
Understanding Model-View-Controller
I have a general programming question about how to divide up my code, usually (and I'm trying to get away from this) I just write it all in the viewController, lots and lots of code in the view controller. But now i've reviewed some information on the MVC but I have some questions.
My Question
Mainly, if I a view controller (holding a model and a view), and in the model I run a method figures out a number display for the view, so just a simple int which the view would take and display on the screen. In order for my model to tell my view to do this should I go straight from model ----> view. Or should I return the data back to the controller and then send it to the view?
Lastly, if I need to send the data back to the controller, how might I do so, because I thought that the model should'nt know about the controller, only vice-versa.
Sorry for the lengthy question. Thanks for all your help.