The first link seems to be an alternative method that I was looking for and
might work for me. I appreciate the insight.
Thanks!
--- In cairngorm-documentation@yahoogroups.com, "ionut stoica" <iongion@...>
wrote:
>
> Based on my experience, this subject is one of the biggest wonders when
developing with cairngorm.
>
> On your quest you should check this out:
>
> http://www.thomasburleson.biz/2007/06/cairngorm_view_notifications.html
>
> or as claudiu said, the UM extensions
http://code.google.com/p/flexcairngorm/wiki/ViewNotifications
>
> but for me, these extensions are dead and without any documentation, that
google code project is almost dead.
>
> try to search more for view notifications, this area is one of the reasons i
attempted moving to puremvc (and some other reasons)
>
> In practice, in 99.9% of the cases my commands do only modellocator updates
and the view is bound to values in modellocator, either by direct databinding or
using ChangeWatcher or the Observer tag.
>
> But there are special cases where the comand-responder,
command-delegate-responder pattern is useless, like when doing flash media
server applications.
>
>
> --- In cairngorm-documentation@yahoogroups.com, claudiu ursica <the_braniak@>
wrote:
> >
> > Check the UM Cairngorm extensions. the guys have implemented a notifyCaller
in their version...
> >
> > Haven't used it at least not yet. Usually we do the round trip thing with
the comand calling an unmarshaller which parses the xml result and unpdates the
model. The view is bound to the model so it updates via bindings.
> >
> > HTH,
> > Claudiu
> >
> >
> >
> >
> > ________________________________
> > From: sdl1326 <azsl1326-email@>
> > To: cairngorm-documentation@yahoogroups.com
> > Sent: Tuesday, March 3, 2009 7:21:28 PM
> > Subject: [cairngorm-documentation] Best method to handle external functions
in the responder
> >
> >
> > I am curious to know if there is a best method or practice to handle
functions that need to be called in responder.result once your results have been
received. The functions that need to be executed are typically based in the mxml
component that dispatched the original event. How I have been handling it, is to
have a reference to the function included in the VO payload that is dispatched
to the command/delegate I then pass a reference to the function in an
asynctoken which will be called once the results are received in
responder.result. This works fine for me. However, I am curious to know if it
is the best method in keeping in line with the mvc/cairngorm pattern. I suppose
I could store a reference to the function in the model? I also could set up a
next event sequence in the command class but this seemed like more work than
necessary.
> >
> > Thanks for the insight.
> >
>