Transcript show dowsn't work from event handler

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Transcript show dowsn't work from event handler

Clemens Eisserer
Hi,

Is there any reason why Transcript show doesn't work when called from
an event handler?
I have
> Transcript show: 'Hello'; flush
inside an onMouseDown handler method, and although the method is
called (it changes the morph's color), nothing is printed in the
Transcript-Window.
If I call the same method from the main "thread" while constructing
the UI, everything works as expected.

Thank you in advance, Clemens
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Transcript show dowsn't work from event handler

Bert Freudenberg

On 19.10.2010, at 11:42, Clemens Eisserer wrote:

> Hi,
>
> Is there any reason why Transcript show doesn't work when called from
> an event handler?
> I have
>> Transcript show: 'Hello'; flush
> inside an onMouseDown handler method, and although the method is
> called (it changes the morph's color), nothing is printed in the
> Transcript-Window.
> If I call the same method from the main "thread" while constructing
> the UI, everything works as expected.
>
> Thank you in advance, Clemens

Should work. Morphic does not use "threads", it's completely synchronous, single-threaded.

- Bert -


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners