Using Squeak -- its UI

Date: Thu, 4 Sep 1997 18:34:12 +0200 (MET DST)
From: Ian Piumarta 
To: squeak@create.ucsb.edu
Subject: Re:  User interface on WinNT
Sender: owner-squeak@create.ucsb.edu
Precedence: bulk
Reply-To: squeak@create.ucsb.edu
Status:   

I'm speaking from the Unix version really, but I think it's applicable to all platforms:

> 1. In the file list app, how do you create a directory ?

I don't think it's possible.

> 2. Is it possible to save a file with the correct end-of-line terminator > (should it be platform dependent?)

No it's not, and yes it should. It should be perfectly possible to make the StandardFileStream do the correct line-end conversions from the native platform to Squeak's internal convention. At the moment Squeak imposes its internal convention on external files, i.e. the same as the MacOS convention where lines end in a single CR. Depending on what utilities are handly this might or might not be a problem. (It's trivial to do the conversion under Unix, and Macs have utilities like BBEdit that know how to handle and convert between Mac/Win/Unix conventions as needed.)

Which you consider the "correct" approach is a matter of religion (or even a non-issue: I have no problems with all Squeak-related files using Squeak's "internal" CR convention, since it's so easy to convert when necessary).

> 3. when I edit a file, how do I save it without being asked to replace > an existing file (when invoking the 'put' action) ?

"Replace" in this context means "overwrite". If you want to change the copy on disk just say "yes" to this.

On the other hand, if you want to save it under a different name then first "spawn this file" to place is in a separate window. Then create a new file with the desired name using "add new file", go back to the original, copy the contents, and then paste into the new file, and "put". Maybe there's a better way, but that's the only one I found so far...

> 4. How do you cancel a dialog box (e.g. FillInTheBlank) ? Sometimes I > press the wrong button and a FillInTheBlank appears...

The Smalltalk convention is to enter an empty string. If there's already a default response, hit DELETE to erase it first. Depending on how deep down in the guts of you are, the system will either ignore the action, warn you of an empty filename, or just "halt" so that you can close the resulting debugger to cancel the process that was prompting you for the name.

(In the latter case another UI process has already "popped out of thin air", so you won't ever endager yourself by closing a debugger generated from an empty fill-in-the-blank.)

Ian

From: "Andreas Raab" To: squeak@create.ucsb.edu Date: Thu, 4 Sep 1997 18:37:42 +0000 Mime-Version: 1.0 Subject: Re: User interface on WinNT Cc: "TANGUAY, LUC" Sender: owner-squeak@create.ucsb.edu Precedence: bulk Reply-To: squeak@create.ucsb.edu Status:

> 2. Is it possible to save a file with the correct end-of-line terminator > (should it be platform dependent?)

You may try my quick hack of a CrLfFileStream from http://isgwww.cs.uni-magdeburg.de/~raab/squeak.html

> 3. when I edit a file, how do I save it without being asked to replace > an existing file (when invoking the 'put' action) ?

I think that this is a rather desireable feature ;-)

> 4. How do you cancel a dialog box (e.g. FillInTheBlank) ? Sometimes I > press the wrong button and a FillInTheBlank appears...

In most cases just press Return.

Andreas -- Linear algebra is your friend - Trigonometry is your enemy. +===== Andreas Raab ============= (raab@isg.cs.uni-magdeburg.de) =====+ I Department of Simulation and Graphics Phone: +49 391 671 8065 I I University of Magdeburg, Germany Fax: +49 391 671 1164 I +=============< http://simsrv.cs.uni-magdeburg.de/~raab >=============+


"More About Squeak..."
Home Page for How To Squeak

Last modified at 1/30/98; 9:47:11 AM
Other Links of Interest
College of Computing | EduTech Institute | GVU Center
Mark Guzdial | CS2390, Modeling and Design | STABLE