Search the web
Sign In
New User? Sign Up
cairngorm-documentation · Cairngorm Documentation Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Best method to handle external functions in the responder   Message List  
Reply | Forward Message #1026 of 1038 |
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.


Tue Mar 3, 2009 5:21 pm

sdl1326
Offline Offline
Send Email Send Email

Forward
Message #1026 of 1038 |
Expand Messages Author Sort by Date

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....
sdl1326
Offline Send Email
Mar 3, 2009
5:21 pm

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...
claudiu ursica
the_braniak
Online Now Send Email
Mar 3, 2009
8:47 pm

Based on my experience, this subject is one of the biggest wonders when developing with cairngorm. On your quest you should check this out: ...
ionut stoica
iongion
Offline Send Email
Mar 3, 2009
11:17 pm

The first link seems to be an alternative method that I was looking for and might work for me. I appreciate the insight. Thanks!...
sdl1326
Offline Send Email
Mar 4, 2009
5:29 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help