I am referring to the general MVC design pattern (as defined in Wikipedia). When doing a GUI-intensive application, I would generally have many controllers, and sometimes a controller could send an event to another controller.
Does MVC in general defines how controller should communicate with controller? Could a controller be the model for a controller higher up in the hierarchy?
Example Suppose I have a window (which is represented by a controller/model/view), and that window is capable of launching another sub-window. The sub-window is modal, and will accept certain input. The input will affect certain processes in the main window.
No. You can not do that with MVC. You want to use some kind of hierarchical pattern like one of the following two:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With