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 / View sending notifications??? on: November 06, 2008, 11:50:54
I would like to know what would be considered best practice for the following situation.  I am going back and forth with allowing my views to send notifications using the puremvc framework or to have the views dispatch events to a mediator that has a registered event listener.

I know that by allowing my views to send a notification I am tying my views to pureMvc.  With that said, is it worse then having the mediators register event listeners to views?  Could there be performance or any garbage collection issues when using flex events and event listeners in the mediator. 

Personally I'd rather not rely on flex events and just let the view send a notification.  Of course this also means each view has a hook to the appfacade singleton so that i can actually send a notification.

Your thoughts??
2  Announcements and General Discussion / Architecture / Proxy Calling Proxy on: October 01, 2008, 03:12:29
I wanted to know if it is good practice to have one proxy use the retrieveProxy function and call a method on another proxy?  I realize I could also call a command that would make the function call on the 2nd proxy.  I am in favor of the command approach b/c then the proxies are not tied together. 

Thanks.
Pages: [1]