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 / moving from single core pureMVC to Multicore pureMVC on: February 17, 2010, 09:26:58
Hi

we are planning to move to multicore PureMVC and divide each view into modules.  I have the following questions

1)      We are planning to have only one module loaded at a time. In this case, how can I approach In order to pass data from the existing module to the module being loaded(next module)?

2)      Can we talk to the main application using the notifications or do we need to use the pipes utility? My understanding is that pipes is mainly used for communication between modules

Which are available at the same time and for communication with the main shell?

3)      We are currently not using proxy for storing data, but using for handling the result and fault handlers and having methods which can be called from mediators. Do you think it’s a good way

If I use my shell proxy(Main applications proxy ) like a model locator in cairngorm with different attributes?
4) Any other best practices or suggestions using multicore pureMVC


Your suggestions will be really helpful. Thanks in advance.

 

Vin a
2  Announcements and General Discussion / General Discussion / Send/listen notifications between Mediators in a viewstack with many children on: February 17, 2010, 09:22:36
Hi,

    Guys, we are facing the following issue for transfering the data between mediators through notifications. 
               
                        Our app mainly consists of a viewstack which has 20 different views. Views are switched by the events dispatched by the Menu item. We are registering the  mediators on the CREATION_COMPLETE event of each child. We got some scenarios, where we need to navigate  from one view to another view(target view) by passing some information.  We are doing this by sending a notification from the existing view and handling it in the application mediator(where it has access to the viewstack). There in the handler I am temporarily storing the data sent, dispatching an event to set the viewstack index to the target view and listening for the SHOW event of the target  view(because by this time the view has not been created, so façade doesn’t know the interests of the target view). In the handler for this SHOW event I am dispatching notification attaching the temporarily stored data and handling this notification in the target view mediator.

Currently we need to circle all the way in order to send data from one viewstack view to another. Can you suggest any better suggestion for doing this?


any help will be appreciated.

thanks
vin
Pages: [1]