[squeak-dev] Transcript in front

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

[squeak-dev] Transcript in front

Jimmie Houchin-3
Hello,

I am writing some tools which are importing data from a website,
extracting the data and making them usable for the new website.

Currently I am displaying data in the transcript as a simple means to
view progress of the application. But the application blocks the UI and
sometimes I forget to put the Transcript at the front of the other
windows so that I can view the progress.

Yes I know it is primitive, but it works and doesn't require much time
to do.

Is there any way I can call a method to make the Transcript on top in
front when I execute this application?

Any help greatly appreciated.

Jimmie

Reply | Threaded
Open this post in threaded view
|

RE: [squeak-dev] Transcript in front

Gary Chambers-4
(SystemWindow allSubInstances select: [:w |
                w model class == TranscriptStream])
        do: [:w | w comeToFront]

Should do the trick.

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]]On Behalf Of
> Jimmie Houchin
> Sent: 16 April 2008 6:11 PM
> To: The general-purpose Squeak developers list
> Subject: [squeak-dev] Transcript in front
>
>
> Hello,
>
> I am writing some tools which are importing data from a website,
> extracting the data and making them usable for the new website.
>
> Currently I am displaying data in the transcript as a simple means to
> view progress of the application. But the application blocks the UI and
> sometimes I forget to put the Transcript at the front of the other
> windows so that I can view the progress.
>
> Yes I know it is primitive, but it works and doesn't require much time
> to do.
>
> Is there any way I can call a method to make the Transcript on top in
> front when I execute this application?
>
> Any help greatly appreciated.
>
> Jimmie
>

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Transcript in front

Jimmie Houchin-3
Gary Chambers wrote:
> (SystemWindow allSubInstances select: [:w |
> w model class == TranscriptStream])
> do: [:w | w comeToFront]
>
> Should do the trick.

Thanks, working beautifully.

Jimmie

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Transcript in front

Bert Freudenberg

On 16.04.2008, at 11:58, Jimmie Houchin wrote:
> Gary Chambers wrote:
>> (SystemWindow allSubInstances select: [:w |
>> w model class == TranscriptStream])
>> do: [:w | w comeToFront]
>>
>> Should do the trick.
>
> Thanks, working beautifully.


This one is better:

Transcript dependents do: [:d | d isSystemWindow ifTrue: [d  
comeToFront]]

- Bert -



Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Transcript in front

Gary Chambers-4
In reply to this post by Jimmie Houchin-3
Fair.

----- Original message -----
From: Bert Freudenberg <[hidden email]>
To: The general-purpose Squeak developers list <[hidden email]>
Sent: Wed, 16 Apr 2008, 21:26:40 BST
Subject: Re: [squeak-dev] Transcript in front

On 16.04.2008, at 11:58, Jimmie Houchin wrote:
> Gary Chambers wrote:
>> (SystemWindow allSubInstances select: [:w |
>> w model class == TranscriptStream])
>> do: [:w | w comeToFront]
>>
>> Should do the trick.
>
> Thanks, working beautifully.


This one is better:

Transcript dependents do: [:d | d isSystemWindow ifTrue: [d  
comeToFront]]

- Bert -




Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Transcript in front

Jimmie Houchin-3
In reply to this post by Bert Freudenberg
Bert Freudenberg wrote:

>
> On 16.04.2008, at 11:58, Jimmie Houchin wrote:
>> Gary Chambers wrote:
>>> (SystemWindow allSubInstances select: [:w |
>>>         w model class == TranscriptStream])
>>>     do: [:w | w comeToFront]
>>>
>>> Should do the trick.
>>
>> Thanks, working beautifully.
>
>
> This one is better:
>
> Transcript dependents do: [:d | d isSystemWindow ifTrue: [d comeToFront]]

Nice.

I thought there might be some message I could send to Transcript but had
no idea what.

I inspected Transcript and it showed me a TranscriptStream. Browsing
TranscriptStream showed me an openAsMorph. From there it was easy to get
lost.

If I have a object available such as Transcript in a workspace. Is there
an easy way to find out all of the messages that object will answer?
Like a way to discover the #dependents message above?

Or do I have to go to a SystemBrowser and explore?

Thanks.

Jimmie

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Transcript in front

K. K. Subramaniam
On Thursday 17 Apr 2008 2:25:57 am Jimmie Houchin wrote:
> If I have a object available such as Transcript in a workspace. Is there
> an easy way to find out all of the messages that object will answer?
> Like a way to discover the #dependents message above?

Try "morph protocol" from the debug halo button.

Subbu