Yes, the dispatcher and the listener are both in the same call stack always,
but I think what we were discussing is whether the caller (the original
caller, the one that calls the method that will eventually dispatch the
event) is in the same callstack as the listener / event handler. That's not
always the case, as it depends on whether the event is dispatched
synchronously or not.

Cheers
Juan Pablo Califano


2010/7/28 Henrik Andersson <he...@henke37.cjb.net>

> Kerry Thompson wrote:
>
>> I agree with everything you say, up to that point. There is a
>> fundamental difference in the way callbacks and messages work. A
>> callback puts the caller on the call stack, and control will
>> eventually return to that calling method. A message does not put the
>> sender on the call stack.
>>
>>
> Have you ever glanced at the callstack in the debugger while in a listener?
> It is very clearly the same callstack both for the dispatcher and the
> listener.
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to