On Friday 26 Sep 2008 11:31:31 pm Mark Volkmann wrote:
> If I have multiple Transcript windows open, can I choose in code which
> one will receive output?
Yes. The "window" is a SystemWindow which shows the contents of the 
TranscriptStream stored in its 'model' variable. If you have an oop to a 
window, say "targetWindow", then use "targetWindow model" to refer to its 
TranscriptStream.

E.g.
| t hellow |
t := TranscriptStream new.
hellow := t openLabel: 'hello'.
hellow model show: 'hello world'; cr

HTH .. Subbu


_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to