I’m working on a piece of software which takes user input, does a lot of calculations on it, and then shows numbers and graphs based on the calculation results. I consider the MVC approach as good as possible. Here are my questions:
Where should I store user input (which will be shown in a table view)? Should it be stored in the needed
ArrayController
in the controller class or in an additional array in the model (class)? What I understand so far is that the information should be stored in the model.Where should I do all of the necessary calculations, the output of which is used for the graphs in the view? Should these be done in the model or in the view controller (class)?
Does it make sense to have a separate controller class for table views in a nib? Right now I handle these data via my
ArrayController
in the corresponding window controller (class).
I’m asking pretty general questions because I understand that the MVC approach is independent from the code, but I have no problems with showing more specific code.
Thanks in advance.