|
Re: Second transcript window?: msg#00067lang.smalltalk.squeak.beginners
On Wed, 12 Sep 2007 05:59:12 -0700, John Almberg <jalmberg@xxxxxxxxxxx> wrote: Hi Blake, Ah. Yes. But, I wasn't able to create a second, named transcript. Well, a morph has a label and an externalName. The label is what you use in Etoys. (If you bring up an inspector by clicking on the "eye" icon in the halo, the label shows up.) The label is visible in the world, but I haven't found a good way in code to ask the World to "give me that morph labeled: 'whatever'". The external name allows you to use the World submorphNamed: message to find it. You can also change the name with "Name": sw := World submorphNamed: 'OldName'. t := sw model. t show: 'This now contains your independent transcript stream!'. sw name: 'NewName'. But this doesn't affect the label. You also have "named" in the sense of: the variable "t" refers to that transcript now. So, in your code it's "named" t. Anyway, no big deal. Scott's method is simple and what I needed. I was just curious about the halos (which I haven't used much, yet.) There's a sort-of wall between Etoys and the rest of Smalltalk. You can do a lot of things easily in Etoys and then hit a wall where straight Smalltalk code would be easier. But then, you don't necessarily want to give up all the easy stuff in Etoys.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Second transcript window?, John Almberg |
|---|---|
| Next by Date: | [SBE--Squeak Book, Steve Moffitt |
| Previous by Thread: | Re: Second transcript window?, John Almberg |
| Next by Thread: | Re: Second transcript window?, Scott Wallace |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |