Home:ALL Converter>Where should intermediate data be stored in mvc?

Where should intermediate data be stored in mvc?

Ask Time:2017-01-30T21:34:43         Author:Alex Aparin

Json Formatter

Some application works with geometric primitives. They are circles, squares etc. User can change positions of such primitives, also he can copy/delete/select them. Where should intermediate data be stored in mvc? Some kind of intermediate data in such case are (for example) selected primitives. As I understand it is not model data. They are data which represent state of View. But what about notifications about changing selection? I suppose that Controller should keep this data and notify listeners about appropiate changes of selection. But in my understanding of mvc, Controller should not know about view

Author:Alex Aparin,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/41937222/where-should-intermediate-data-be-stored-in-mvc
yy