Inspector instances

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

Inspector instances

Claus Kick
Hello everyone,

I tried to update my Squeak image a bit.

Since I wanted an uninterrupted update, I changed
ReleaseBuilderFor3dot10>>loadTogether:merge: a bit, as not to throw a
walkback window saying "The changes should be reviewed".

Unfortunately, I forgot to comment out opening the inspector as well.
Then I started the update and had dinner. I think one or two warnings
kept creeping up (replacing changed classes - where can you get rid of
that message btw?)

So, now I have an updated 3.10 Image and a million (at least it feels as
if) Inspectors open.

Now, in other Smalltalks you do just that

Inspector allInstances do:[:win | win close]

or

Inspector allInstances do:[:in | in mainWindow close].


I tried getting the SystemWindow of each Inspector instance, but sending
#close to it just yields yet another walkback.

How do you do that in Squeak? I spent the last half hour browsing
through Morph, its Subclasses and ToolSet (trying to understand what
acutally happens if you inspect an Object).

Please help a poor updater :D
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Inspector instances

Zulq Alam-2
Once you have the window you can #delete it. There may better (safer?) ways.

(Inspector allInstances gather:
   [:e | e dependents collect:
     [:d | d window]])
   asSet do: [:e | e delete]

- Zulq

Claus Kick wrote:

> Hello everyone,
>
> I tried to update my Squeak image a bit.
>
> Since I wanted an uninterrupted update, I changed
> ReleaseBuilderFor3dot10>>loadTogether:merge: a bit, as not to throw a
> walkback window saying "The changes should be reviewed".
>
> Unfortunately, I forgot to comment out opening the inspector as well.
> Then I started the update and had dinner. I think one or two warnings
> kept creeping up (replacing changed classes - where can you get rid of
> that message btw?)
>
> So, now I have an updated 3.10 Image and a million (at least it feels as
> if) Inspectors open.
>
> Now, in other Smalltalks you do just that
>
> Inspector allInstances do:[:win | win close]
>
> or
>
> Inspector allInstances do:[:in | in mainWindow close].
>
>
> I tried getting the SystemWindow of each Inspector instance, but sending
> #close to it just yields yet another walkback.
>
> How do you do that in Squeak? I spent the last half hour browsing
> through Morph, its Subclasses and ToolSet (trying to understand what
> acutally happens if you inspect an Object).
>
> Please help a poor updater :D

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Inspector instances

Karl Ramberg
In reply to this post by Claus Kick
Claus Kick wrote:

> Hello everyone,
>
> I tried to update my Squeak image a bit.
>
> Since I wanted an uninterrupted update, I changed
> ReleaseBuilderFor3dot10>>loadTogether:merge: a bit, as not to throw a
> walkback window saying "The changes should be reviewed".
>
> Unfortunately, I forgot to comment out opening the inspector as well.
> Then I started the update and had dinner. I think one or two warnings
> kept creeping up (replacing changed classes - where can you get rid of
> that message btw?)
>
> So, now I have an updated 3.10 Image and a million (at least it feels
> as if) Inspectors open.
>
> Now, in other Smalltalks you do just that
>
> Inspector allInstances do:[:win | win close]
>
> or
>
> Inspector allInstances do:[:in | in mainWindow close].
>
>
> I tried getting the SystemWindow of each Inspector instance, but
> sending #close to it just yields yet another walkback.
>
> How do you do that in Squeak? I spent the last half hour browsing
> through Morph, its Subclasses and ToolSet (trying to understand what
> acutally happens if you inspect an Object).
>
> Please help a poor updater :D
WorldMenu/Windows/ColoseAllUnchangedWindows ?

Karl
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Re: Inspector instances

Claus Kick
In reply to this post by Zulq Alam-2
Zulq Alam wrote:
> Once you have the window you can #delete it. There may better (safer?)
> ways.
>
> (Inspector allInstances gather:
>   [:e | e dependents collect:
>     [:d | d window]])
>   asSet do: [:e | e delete]
>

Ah, ok, thank you very much!
delete it is!



_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Inspector instances

Claus Kick
In reply to this post by Karl Ramberg
Karl Ramberg wrote:

>> Please help a poor updater :D
>
> WorldMenu/Windows/ColoseAllUnchangedWindows ?

Two words: Thank you.
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners