Hi,

this probably depends on the version of Pharo you're using but, in 3.0, what you can do is:

        Smalltalk globals organization removeCategory: name.

And then you need to update the relevant RPackage tag:

        package removeClassTag: name

(Because RPackage class tags are synchronized on some category operations, but not all).

In 2.0, you just have to execute the first one.

Nautilus, or Browser, are good places to see that type of code.

Thierry

Le 11/11/2013 23:33, Jimmie Houchin a écrit :
Hello,

I am wanting to write a method which uninstalls all of the Classes which
I have created.

I have one which looks like this:

uninstall

     AllClasses reverse do: [ :c | Smalltalk removeClassNamed: c ]


However the class category which was created to install them into still
remains. I am having a hard time discovering what method I use to remove
the category these classes were in.

There are a lot of methods with category in the name. And is quite
confusing how category and protocol are sometimes used interchangeably.
I can't tell whether or not they are talking about removing the method's
protocol categorization or the classes' category categorization. Its not
until you go read the source that you might learn which you are looking at.

Any help pointing to the method I am looking for is greatly appreciated.

Jimmie



--
Thierry Goubier
CEA list
Laboratoire des Fondations des Systèmes Temps Réel Embarqués
91191 Gif sur Yvette Cedex
France
Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95

Reply via email to