creating a class at runtime....

Wolfgang Helbig helbig at lehre.ba-stuttgart.de
Sun Feb 26 13:58:33 UTC 2006


"nelson -" <nelson1977 at gmail.com> wrote:

> 
> I have solved....

So did I :-)

I looked at the template the System Browser is providing if you select a
category:

Object subclass: #NameOfSubclass
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'ST80-Editors'

This is a message to be sent to the super class of your new class. (In
the template it happens to be
Object.) The message is implemented in class Class. Consult the System
Browser (Kernel-Classes | Class | subclass creation) for other messages
you might use to create classes.
> I missed category:'' in this statement.... But i can't declare a class without  declaring a category?

Regards,
Wolfgang



More information about the Squeak-dev mailing list