TranscriptStream questions

Ken G. Brown kbrown at tnc.com
Wed Sep 12 03:06:16 UTC 2001


TranscriptStream seems to be able to do what I want for displaying a 
growing text stream from a serial port. However there are a few 
things I don't understand.
----
This snippet works as I would like but how do I change the title?

myTranscript _ Transcript open.
myTranscript show: 'This text shows.'
----
This snippet opens a transcript window titled 'My Transcript' but the show:
message does not work.

myTranscript _ (TranscriptStream new openAsMorphLabel: 'My 
Transcript') openInWorld.
myTranscript show: 'my text'. "gets message not understood - show:"

What do I do in place of show: which would give the same results of 
adding to the bottom of the existing text?
----

Is it ok to use TranscriptStream in this way or are there negative 
implications? Eventually I might want to have several 
TranscriptStreams within a window. Is it possible? Or should I be 
using PluggableTextMorphs (or some other). If so, how do I get the 
PluggabletextMorph to act like the TranscriptStream with the 
equivalent of the show: message?

Thx for any help.
Ken




More information about the Squeak-dev mailing list