Hi all,
I want to ask about software design. I have a task, the view controller handles UI event for calling a model manger to perform that task. After finishing, the model manager will callback to update the view.
There have also other view controllers who care about that task, and also want to update its own view when that task is finished. So I register a Notification for that task in each view controllers.
The problem is defining where should I send "finishing task" Notification, in Model manager or in the view controller who handles event and receives the callback from Model manager? What is better design? Should the model care about send this "common" task, or should the view controller?
I think it's better to choose View controller, but my friend says that a view controller shouldn't care about other view controllers.
Thanks