[squeak-dev] Default window size is too small; we should at least increase it a bit and make a preference setting

tim Rowledge tim at rowledge.org
Sun May 15 18:17:53 UTC 2022

I *think* you 'misheard' - not the Squeak window but the default Morphic window size is the issue here. 

It turns out to be reasonably easy (after digging into the rather convoluted morass of the PreferenceView/Registry classes) to add a new preference pragma for this. I had to add a new PBPointPreferenceView to parse point inputs.

It turns out that only two other items have Points as the preference value; MorphicProject class>>#worldGridOrigin: & #worldGridModulus: Both have rather dangerous code  for handling the input since they compile whatever is entered. So 'Smalltalk quitPrimitive' will be just fine...

Is there any sense in which these two need to be able to accept actual code as opposed to a typed in point value? We could, if that is so, simply use the extremely dangerous generic #readFromString: -> #basicReadFrom: methods, which allow programmatic suicide :-(

I also offer a somewhat safer Point class>#readFrom: to combat this for at least one more case.

I will also point out that not all tools pay any attention to the RealEstateAgent's idea of the proper size. Maybe the tools should be able to have their own idea of default size included in the preferences?

> On 2022-05-13, at 4:41 PM, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> On Fri, May 13, 2022 at 10:48 AM tim Rowledge <tim at rowledge.org> wrote:
> The current default size settings in theRealEstateAgent are too small for almost all use cases on modern(ish) machines.
> I find - 
>      RealEstateAgent standardSize: 900 @ 700.
> an improvement but it would be nicer to have it as a preference. Perhaps an alternative might be some auto-adaptive sizing?
> I would move to 1024 at 768.  There's no need for any other complication as the window can be resized with a single gesture and saved on all our platforms.
> _,,,^..^,,,_
> best, Eliot

tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
USER ERROR: replace user and press any key to continue.

More information about the Squeak-dev mailing list