How can I find all objects that reference myObject?

I have a myObject , and I'm not sure who keeps links to it. (I want to know, because I'm recycling something.)

I found the "Objects pointing to this value" button in the inspector, but it doesn’t call anything even if I create another object indicating, for example:

 OrderedCollection new add: self ; inspect 

Clearly this button is broken! So how can I get all the reference objects?

I am using a Moose 4.6 image.

+6
source share
3 answers

PointerExplorer openOn: myObject works in Pharo, but is slightly broken in Moose 4.6. For a quick fix, return ObjectExplorerWrapper >> icon to the previous version (AlainPlantec 12/6/2009 22:13)

In Pharo / Squeak you can use:

 myObject pointersTo 
+5
source

In Pharo / Squeak you can use: myObject pointersTo

+4
source

In Squeak 4.5

 PointerFinder pointersTo: myObject 

and

 PointerExplorer new openExplorerFor: myObject 
0
source

Source: https://habr.com/ru/post/901697/


All Articles