Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

deleting a Class - <Class> has n instances

23 views
Skip to first unread message

Sanjay Minni

unread,
Apr 14, 2012, 6:23:18 AM4/14/12
to
Hi

When trying to delete a class "Foo" - I get the message "Foo has n instances"

I am unable to locate the instance - I have no workspace open
Please help on how to go about deleting the Class

Regards
Sanjay

IanB

unread,
Apr 14, 2012, 7:10:09 AM4/14/12
to
Sanjay,

>Please help on how to go about deleting the Class

First, try the Panic" icon on the main Dolphin page. If the Foo class
is View related that might clear the instances. Otherwise

Foo allInstances do: [:each | each become: String new]

should allow the instances to be garbage collected.

Best to save the image before trying the above, just to be on the safe
side :-) Once the instances have gone you can just delete Foo

Ian
--
The From and ReplyTo addresses are valid

Dolphin goodies and newsgroup archive - http://www.idb.me.uk

Sanjay Minni

unread,
Apr 14, 2012, 8:16:08 AM4/14/12
to con...@sunhillow.eu
Ian

Thanks - actually I was running seaside and these were connected as root to the Dispatcher -
I traced visually and removed 2 - but am still unable to trace the last
In a workspace I can Inspect the properties of Foo and it shows superclass=WAComponent

any Idea how I can weed it out

Regards
Sanjay

Sanjay Minni

unread,
Apr 14, 2012, 9:26:51 AM4/14/12
to con...@sunhillow.eu
OK, i just tried and this time it got deleted - maybe there is a latency or something that happened with all that I tried
0 new messages