The worklow that can be used when implementing strict MVC or MVC-live architecural pattern is:
- The view queries the controller
- The controller asks model to do some processing
- The controller notifies the view
As the view knows the controller but the opposite is not true, I use to implement the subject/observer pattern to communicate from the controller to the view.
Thus you have:
class View
{
void doSomething()
{
controller.requestDoSomething();
}
void onProcessingSuccessEvent()
{
// do stuff (for example read model)
}
};
class Controller
{
void requestDoSomething()
{
model.process();
...
notify(ProcessingSuccessEvent);
}
}
I hope this can help you with your issue.
Best Regards,