Search code examples
iosobjective-cautomatic-ref-countingdeallocxcode-instruments

Using the debugger to find all strong references to an object


I have an object a1 of class A, I want to find all the objects that hold a strong a reference to the object a1.

Is there a way to do it?

The reason I want to know this is because, a1 doesn't seem to be deallocated.


Solution

  • Yes, using Instruments.app, you can. Apple has a simple introduction, and if that doesn't help, many others have tutorials for using Instruments as well.


    edit - this article looks useful, too.