Trouble With Squeak Tutorial?

Norton, Chris chrisn at Kronos.com
Tue Apr 18 00:22:21 UTC 2000


Hi Conrad.

1. Open up a new Browser (main menu, open..., browser).  Right mouse click
on the upper left list box and choose find class.  Type in Object and hit
enter.  Choose Object from the list of classes found.

2.  In the 3rd from left hand pane, click on '--  all  --'.

3.  In the bottom pane, you'll see the standard "template" for a method.
Usually I clear this and type in my new method there.  You can simply type
your method there.

	hello
	    Transcript show:  'Hello World'

4.  Now type Alt-s to save the new method.  You have just added a new method
to Object.

You can now run your example in a workspace:

	Object new hello <click do it>

Cheers & good evening.

---==> Chris

PS>  The cut, copy and paste commands in Squeak (on Windows) use the Alt
key, instead of the Ctrl key.  This is unfortunate for Windows users, but
you get used to it after a year or two...  Try out Alt-x, Alt-c and Alt-v.
Good luck!





More information about the Squeak-dev mailing list