Mediators listen signals

gz.francisco's Avatar

gz.francisco

09 Mar, 2011 04:52 PM

Hi,

Sorry for my english but i'm from México =P

I have a many time with robotlegs but in this last moths i use Signals, and i have a cuestion.

What is the method for listen signals from the actors in the framework to a mediators?
In mediator we have eventMap.mapEvent(...); but if i need listen a specific Signal without [Inject] meta tag?

Thanks

  1. 1 Posted by Stray on 09 Mar, 2011 05:08 PM

    Stray's Avatar

    Hi there,

    Sorry for my Spanish, I'm from England!

    Tengo un 'SignalMediator' como un 'SignalMap' - aqui:

    https://gist.github.com/862548

    Cuando tu quieres (onRegister):

    signalMap.addToSignal(SignalPorAlgo, handler);

    Espero es útil!

    Stray

  2. 2 Posted by gz.francisco on 09 Mar, 2011 10:23 PM

    gz.francisco's Avatar

    Hi there!

    Im @GzFrancisco ñ_ñ

    Thanks, only i have one more cuestion. That 'SignalPorAlgo' i have to inject in the mediator?

    Thanks Stray!

  3. 3 Posted by Stray on 09 Mar, 2011 10:27 PM

    Stray's Avatar

    Si, or it can be a signal from your view.

    like:

    signalMap.addToSignal(view.cancelClicked, sendCancelEvent);

    or

    [Inject]
    public var modelUpdatedSignal:ModelUpdatedSignal;

    signalMap.addToSignal(modelUpdatedSignal, passUpdateToView);

    De nada!

    Stray

  4. 4 Posted by gz.francisco on 09 Mar, 2011 10:35 PM

    gz.francisco's Avatar

    Muchos thanks de nuevo, ya me quedo claro ^_^

  5. Support Staff 5 Posted by Stray on 10 Mar, 2011 03:16 PM

    Stray's Avatar
  6. Stray closed this discussion on 29 Apr, 2011 06:26 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac