Hi all,
Seemigly simple question but can't satisfy myself with the correct answer.
Two MVP based views. On one view you click on an item in a list. Click a button and then the details of that item are displayed in another view. My question is how does the summary view pass through the state to the detail view. It can't be the views that pass the details through as they shouldn't be aware of the model (i'm intending on passing the model through). Should the presenters be aware of each other somehow, or should the presenters talk to each other through the interfaces of the views?
I hope this makes sense.
Seemigly simple question but can't satisfy myself with the correct answer.
Two MVP based views. On one view you click on an item in a list. Click a button and then the details of that item are displayed in another view. My question is how does the summary view pass through the state to the detail view. It can't be the views that pass the details through as they shouldn't be aware of the model (i'm intending on passing the model through). Should the presenters be aware of each other somehow, or should the presenters talk to each other through the interfaces of the views?
I hope this makes sense.