[Newbies] how do I get rid of things that pointer finder points to?

Herbert König herbertkoenig at gmx.net
Thu Sep 4 05:58:38 UTC 2008


Hello Freeman,

FM> I figured out how to find bad reference to obsolete objects
FM> using pointer finder, but I still don't really understand how to
FM> hunt it down and get rid of it.

To hunt it down:
ThatClass allInstances inspect gives you an Array with all instances.
I forgot why I stopped using PointerFinder.

To get rid of it:
Open up an Inspector on every Object that references your obsolete
Object. There you set that reference (Ivar) to nil.

The you close all of the inspectors.

After that:
Smalltalk garbageCollect then Smalltalk forgetDoits.

The Swiki has some articles on this, one being "cleanig up junk".


-- 
Cheers,

Herbert   



More information about the Beginners mailing list