[Pharo-dev] Remove Class Category
jlhouchin at gmail.com
Tue Nov 12 12:03:27 EST 2013
Thanks for the reply.
This does exactly what I wanted. I believe I saw the method while
browsing the plethora of methods that the Finder pulls up. But I did not
know automatically how to have the instance of the SystemOrganizer to
operate on. And since I was not even sure that it was the correct way. I
finally decided to ask.
On 11/12/2013 2:25 AM, Goubier Thierry wrote:
> 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.
> Le 11/11/2013 23:33, Jimmie Houchin a écrit :
>> I am wanting to write a method which uninstalls all of the Classes which
>> I have created.
>> I have one which looks like this:
>> 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.
More information about the Pharo-dev