[squeak-dev] The Inbox: Tools-jr.929.mcz

David T. Lewis lewis at mail.msen.com
Fri Jan 3 01:06:56 UTC 2020


On Thu, Jan 02, 2020 at 10:14:56PM +0100, Jakob Reschke wrote:
> Am Do., 2. Jan. 2020 um 17:45 Uhr schrieb David T. Lewis <
> lewis at mail.msen.com>:
> 
> > I also tried it like this:
> >
> >   Browser>>defaultBrowserTitle
> >       ^ 'System Browser on environment ', self class environment asString
> >
> > And it seems quite acceptable to me. It serves as a reminder that
> > environments exist :-)
> >
> > I'm not proposing that as a change, just making note of it.
> >
> 
> Please note the difference between self class environment and self environment here:
> self class environment is the environment in which the class "Browser" was defined.
> self environment is the environment that "a Browser" browses.

Yes, so it should be this instead:

   Browser>>defaultBrowserTitle
       ^ 'System Browser on environment ', self environment asString


Or perhaps to save some space on the window label:

   Browser>>defaultBrowserTitle
       ^ 'System Browser on ', self environment asString


Dave

-------------- next part --------------
A non-text attachment was scrubbed...
Name: System Browser on Smalltalk: OrderedCollection.png
Type: image/png
Size: 51858 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200102/5b8e0133/attachment.png>


More information about the Squeak-dev mailing list