Re: [flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-14 Thread gabriel montagné
On Sun, Apr 13, 2008 at 10:50 AM, Doug McCune [EMAIL PROTECTED] wrote: we'll be pushing out more examples, especially of how to use the EventGenerator since that's something I think a lot of people have needed to do. Yeah, on has to go over the code a bit to see how it works, but that

[flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-14 Thread ACE
Nice...seems like lack of documentation/examples is making me jump the gun. I will go into isolation and go through the library and see if this really takes care of all needs. Thanks.

[flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-13 Thread ACE
It is not so much of using If/new callbacks, it is more of a generic approach. I personally do not like If(s), not a fan at all. What I find missing is an easy way of sequencing events as i would have done in traditional threaded applications. If I was do a callback, i would prefer to pass a

[flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-13 Thread ben.clinkinbeard
You don't like if statements? There is another thread around here about sequencing events/commands and there is also Cairngorm's SequenceCommand (though personally I am not a fan of that). As for the Callbacks class you see, that is just a convenient way to wrap a result handler and fault

Re: [flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-13 Thread Doug McCune
BTW, the EventGenerator class in the UM extensions is specifically for sequencing events. You can wrap a bunch of events in the EventGenerator and tell the generator whether the events should run in sequence or in parallel. Then you fire off the generator and it will queue up all the events and

[flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-11 Thread João
Ben, but that would mean that I would have a lot of code duplicated for each module, right? In this case, the cairngorm source (or, at least, the singletons). Am I right? It doesn't seem a good practice to me... what do you think? João Saleiro

[flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-11 Thread ben.clinkinbeard
Well, they would all point to the same Cairngorm/UM Cairngorm SWC (that lives in the library project) but yes, you would have a model, services, etc in each project. The resulting swf is built using -link-report/-load-externs to optimize the inclusion of classes though so you don't have

Re: [flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-11 Thread Douglas Knudsen
After joining UM and working with this I found the most kewlest slick part I like is the callback support in Cairngorm events. Uber sweet at helping you handle results and not bloating out your ModelLocator instances. Also, the sweet hook that easily sets up using dispatchEvent no matter if its

[flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-11 Thread ACE
I like the fact that someone found this to be a problem and cared to make this as a framework. When, I needed this, I was writing my custom code. But, I do not like the implementation for the simple reason, that if a View say View-1 needs synchronous information from 2 commands, it cannot,

[flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-11 Thread ben.clinkinbeard
Hi Ace, I think your complaint is having to create a callback for every event/command invoked by your view and it is possible to avoid that. If thats not what you meant I apologize and disregard the rest of this message. :) Our general approach is to pass ResultEvents back from delegates to

Re: [flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-11 Thread Jon Bradley
Ben, Question for you. I've been looking at the UM extensions as well. How about your support for chaining? From what I've seen it's chaining commands, not events. My main needs are to chain events, and right now I'm using a very wordy (ie, many class files) to do that. Separate classes

[flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-11 Thread ben.clinkinbeard
Hi Jon, I don't really know what you mean by chained events, can you elaborate? I should also point out I have only been using UM Cairngorm for a couple of months and don't feel like my head is completely around it quite yet. More than happy to try answering your question if you can clarify

Re: [flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-11 Thread Jon Bradley
On Apr 11, 2008, at 2:56 PM, ben.clinkinbeard wrote: Hi Jon, I don't really know what you mean by chained events, can you elaborate? I should also point out I have only been using UM Cairngorm for a couple of months and don't feel like my head is completely around it quite yet. More than

Re: [flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-11 Thread João Fernandes
Jon, regarding chain events, I use modular which allows this ( in fact thanks to Bjorn Schultheiss ). All you have to do is to have your events extend ChainEvent (which extends cairngormEvent ) and your commands extend SequenceCommand. Then you can combine any of those events in any order

Re: [flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-11 Thread Douglas Knudsen
http://code.google.com/p/flexcairngorm/ from the home page there is Implementation of EventGenerator to allow developers to automate dispatching of sequences of events. I have not actually used this. It might be covered in Thomas' Flex Show which you can find a link to here

Re: [flexcoders] Re: What do you think of UM Cairngorm Extensions,especially for Modular Apps?

2008-04-11 Thread Jon Bradley
Good stuff indeed. Thanks for the links. I've actually grabbed that stuff and started to look into it a bit deeper. cheers, jon On Apr 11, 2008, at 4:29 PM, Douglas Knudsen wrote: http://code.google.com/p/flexcairngorm/ DK On Fri, Apr 11, 2008 at