samedi 26 novembre 2016

When would Presenter update model in MVP

I was reading about MVP, and in case of supervisor controller, Presenter can update the model and View can listen to those changes.

I am not able to understand when would presenter update a model. Ideally presenter acts on request from view. And if view is requesting to something, why can't presenter return the result to view. Instead of going through different route where presenter updates the model and view listen to that and act accordingly.

And even if one view is updating and other view is interested in this event, then also view can raise event which other view can listen to.

Thanks in Advance

Aucun commentaire:

Enregistrer un commentaire