How to remove System Category

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to remove System Category

Rob Rothwell
Hello,

How can I remove a System Category in code?  I can't quite figure out the usage of SystemOrganizer>>removeSystemCategory:

Thanks,

Rob

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: How to remove System Category

Ian J Cottee-3
On Sat, Sep 13, 2008 at 2:29 AM, Rob Rothwell <[hidden email]> wrote:
> Hello,
> How can I remove a System Category in code?  I can't quite figure out the
> usage of SystemOrganizer>>removeSystemCategory:
> Thanks,
> Rob

Having had a quick look, there's a global variable called
SystemOrganization which is singleton instance of SystemOrganizer. You
can just do

   SystemOrganization removeSystemCategory: 'MyTestCategory'

(removeCategory seems to do the same but raises an error if not empty)

Ian
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: How to remove System Category

Ian J Cottee-3
On Sat, Sep 13, 2008 at 8:33 AM, Ian J Cottee <[hidden email]> wrote:

> Having had a quick look, there's a global variable called
> SystemOrganization which is singleton instance of SystemOrganizer. You
> can just do

Oh, it's not a singleton. You can create your own empty instance of it.
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners