I am working on an application and i am using the MVC pattern. Currently my plan is to have an MVC pattern for each window that comes up. For instance, my login window has its own mvc system. Another window where they make a selection has its own mvc system. Then the mainview has its own mvc system…
This just seems a little goofy. I was wondering if that was normal, to have every window have its own mvc? If not, how could i arrange this better?
The trouble i am running into is, how do i get the log in window mvc to correctly call the selection window and then after they make their selection, how does the selection window call the mainview window?
Thanks for any help! If you need more info, please let me know.
Use the observer pattern. If any view changes the model’s state, then all registered listeners will be notified, and each can update itself to reflect the change. This example mentions three common ways to implement the observer pattern.