I like this approaching too but, as a begginer with Cairngorm, when I see
the basic examples (like
http://www.cairngormdocs.org/tools/CairngormDiagramExplorer.html) putting
this in the FrontController, I stay in doubt about if there is a pattern or
a best way to do this.


2008/2/25, Scott Melby <[EMAIL PROTECTED]>:
>
>    Don't know about "best", but I always put it in the event class
> itself.  I like that is results in the call to AddCommand having both the
> event class and the command class explicitly referenced as shown below.
>
> addCommand(GetSomeDataEvent.GET_SOME_DATA_EVENT, GetSomeDataCommand);
>
> hth
> Scott
>
> Scott Melby
> Founder, Fast Lane Software LLC
> http://www.fastlanesw.com
>
>
>
> Fernando Ghisi wrote:
>
>  Where is the best place to put the static variable that stores the
> name of an event, in the class of this event (extends CairngormEvent)
> or in the class that extends FrontController and consumes this event?
> There are many examples with both ways...
>
> --
> Fernando Ghisi
>
>  
>



-- 
Fernando Benedet Ghisi

Reply via email to