Where to set wait cursor in long operation in MVP pattern?
-
23-09-2019 - |
Question
For a long operation that will be executed in presenter, where to set the wait cursor?
- in View? the view shouldn't know too much about business logic, it is passive.
- in presenter? seems odd in presenter to call UI code.
- add method to View interface, like SetWait(bool), and call it in presenter?
So what do you think?
Solution
I usually do it as no.3 from the presenter tell the view to show the user a "long running operation" feedback... whatever that means for the view (wait cursor, message, etc.)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow