|
Re: Second transcript window?: msg#00065lang.smalltalk.squeak.beginners
On Tue, 11 Sep 2007 05:38:45 -0700, John Almberg <jalmberg@xxxxxxxxxxx> wrote: Hi Blake, Scott Wallace put up this code last night (in case you missed it): ((myTranscript := TranscriptStream new) openAsMorphLabel: 'My Private Transcript') openInWorld. You can now address "myTranscript" separately from Transcript: myTranscript cr; show: 'hello, private transcript'. Transcript cr; show: 'hello, system transcript window(s)'. It is possible to do it using morphs, you just have to get a reference to that morph. It doesn't seem to matter if you make a sibling copy or not (though I'm sure there are ramifications). So, what you can do is create the copy, inspect it to find out its external name ("Transcript1" in my case) and then pull the TranscriptStream out of it: sw := World submorphNamed: 'Transcript1'. t := sw model. t show: 'This now contains your independent transcript stream.' Obviously, Scott's version is cleaner, but I've been struggling with trying to interact with already existing objects since I started playing with Morphic.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Second transcript window?, Göran Krampe |
|---|---|
| Next by Date: | Re: Second transcript window?, John Almberg |
| Previous by Thread: | Re: Second transcript window?, John Almberg |
| Next by Thread: | Re: Second transcript window?, John Almberg |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |