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 / General Discussion / Re: Do we really need to send Notifications to Mediator? on: October 04, 2009, 11:43:22
Thanks Cliff :)
this makes a lot of sense!
2  Announcements and General Discussion / General Discussion / Do we really need to send Notifications to Mediator? on: October 02, 2009, 06:46:47
Hello everyone, I have one simple question.

Both Command and Proxy have access to Facade, wich means, that they can retrieve any Mediator. If so, we can get a Mediator's instance, and then directly call one of it's functions instead of sending a Notification for e.g.:

var myMediator:MyMediator = facade.retrieveMediator( 'mediatorName' ) as MyMediator;
myMediator.update();

So my question is, why do we actually need these listNotificationInterests() and handleNotification(notification : INotification) functions within Mediator, and why do we send Notifications to Mediators?

Thanks :)

Marcin






Pages: [1]