Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

* | |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / Architecture / Apps with multiple instances of proxies (and mediators) on: February 05, 2008, 06:49:25
So, we have been using the framework here for a little while now. As applications get complex things are getting interesting and I am wondering how some other people are solving this problem...

- You have an application that makes multiple instances of a ui widget
- The ui widget has a corresponding Proxy to save its data (multiple instances of proxy, one for each ui widget)

-the problem: following the puremvc practice of poxies sending notifications, every widget will hear the notification of one proxies save and load and error notifications.

Imagine an app like TextEdit, with multiple documents open. If you load a window(or reload) You don't want EVERY window to update with the new loaded text.

The only way I see out of this is having the proxy send an event, not a notification.The mediator(which is instanced with the ui component) will hold a reference to the proxy so this is easy. This doesn't seem recommended in PMVC, is there a more framework friendly solution?

I feel like the whole framework breaks down a bit if things aren't as simple as one proxy matching up with one instance of ui components that care about its data. I hope im wrong!

Pages: [1]