Original Post
I am currently writing a piece of software that uses the MVC pattern. I have a class, which can be called 'Element' for the sake of this discussion that holds data, so would be the 'model' part of MVC. I also have a class which display's the data (the view), but the Element can be selected by the user by clicking on the view (which is obviously handled by the controller), but which part of the system should store the boolean that designates the fact that a particular element has been selected? It seems that the model would be the easiest place to add this boolean - but it seems the wrong place to put it, because it isn't really part of the data, it's more part of the control of the view. The view could also store a list of selected elements, but I'm not sure if this would be the 'correct' placing either. Any thoughts? -SD