Tom Chiverton wrote:
> On Friday 05 January 2007 14:51, Martin Wood-Mitrovski wrote:
>> do these objects then implement some kind of interface to support the
>> 'onCommandName(result)' method or do you type it in some other way?
> 
> No, you could (should ?) write an interface class and import it though, yes.
> As long as we remember to make the function public rather than private it 
> works really well. We like it much better than the old ViewHelper way of 
> doing things as now your result handler code is right there with the 
> invocation code.

So you mean that the object that invokes the service and handles the result is 
typed all the way through, its only the event that you have to cast in the 
command.

I agree that having the result handler next to the invocation is preferable, im 
not sure if its really worth the trouble of creating an interface for this, 
after all it seems unlikely to need that flexibility...unless of course at some 
point you wanted to shift the result handlers into their own class or 
something.....im getting dangerously close to rambling.. ;)

Anyway..i'm still getting to grips with the Cairngorm style and how best to 
bend 
it to my will, so its interesting to see other choices and implementations.

Also this way matches my AS2 setup much more closely as well which is nice. :)

Martin.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to