Newbie Questions?
Conrad Taylor
conradwt at yahoo.com
Tue Apr 18 17:23:40 UTC 2000
--- "Richard A. O'Keefe" <ok at atlas.otago.ac.nz> wrote:
> This seems to provide two choices small and display
> size. However, I noticed that I cannot simply
> resize
> the application window so that I can use other
> apps.
>
> What platform are you working on?
I'm working with NT 4.0 w/sp4.
> On both Solaris and MacOS, the normal platform
> convention for
> resizing an application window (like dragging the
> bottom right
> corner on a Mac) works perfectly well. After that,
> you have to
> bring up a background menu inside the Squeak window
> and select
> "restore display", but the resizing works straight
> out of the box.
>
Well, I have tried the above and that works. However,
I will have to 'restore display' everytime I make the
window bigger than the current size. Will this be
fixed in the future?
> I'm new to the language it it strikes me a bit odd
> that I would edit existing method to add a new one.
>
> You don't have to.
>
> Let's suppose I want to add a method 'frob' to the
> existing class String.
> Bring up a browser (background, open, browser).
> Select class category Collections-Text (scroll,
> select).
> Select class String
> Select method category (for argument's sake,
> private)
> Now the browser drops a template into the bottom
> pane.
> The template is always the same; it looks like
> +-------------------------------------------+
> | message selector and argument names |
> | "comment stating purpose of message" |
> | |
> | | temporary variable names | |
> | statements |
> | |
> | |
> +-------------------------------------------+
> and it's already selected. (Who decided that khaki
> on green was a good
> way to indicate a selection in the browser? What
> was s/he smoking at the
> time?)
> Edit that, e.g. to
> +-------------------------------------------+
> | frob |
> | "demonstrate method insertion oddly" |
> | |
> | | c | |
> | c := self at: 1 |
> | self at: 1 put: c asUpperCase |
> | |
> +-------------------------------------------+
> When you're happy with it, accept it (from the menu,
> or Cmd-s).
>
> I was thinking that one would perform the
> following:
>
> 1) create class category or use existing
> 2) create class or use existing
> 3) add method category or use existing
> 4) add method
>
> You see? You were _right_.
> Thing is, when you do "accept:" in the bottom pane,
> Smalltalk doesn't
> care _where_ the text came from. All it cares about
> is what it looks
> like now. Quite often there is an existing method
> which is close to
> what you want so that editing it will save you a lot
> of time. After all,
> if you were using Emacs to write code, you would
> very often work by
> copying a chunk of code and adapting it.
>
This is the Emacs way and I'll never give this editor
up. It would be great if one can change the default
editor in Squeak. However, this isn't important now
because I'm in the process of learning the Squeak
environment and Smalltalk. Let's take one step at a
time. Thanks again for all your help.
-Conrad
>
__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com
More information about the Squeak-dev
mailing list
|