I can write methods in Squeak to extend the behavior of existing objects. Does the Squeak GUI provide a similar way to write new classes from scratch (inheriting from an existing class, of course?)
Benji
Benjamin Shults wrote:
I can write methods in Squeak to extend the behavior of existing objects. Does the Squeak GUI provide a similar way to write new classes from scratch (inheriting from an existing class, of course?)
Benji
Yes, everything in Squeak has the same behavior, I mean, everything you see in Squeak belongs to a class (even the compiler!) and any Squeak class can have a new sublclass.
Yes it does - open a browser, select a category. In the lower pane, (where code is usually found) you will see a message send. This represents the creation code for a dummy class. Replace Object with the name of your intended superclass, replace NameOfClass with the name of you new class (Capitalized) and there you are. The class should appear in the class list for that category.
squeak-dev@lists.squeakfoundation.org