8

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.

Ryan
  • 3,853
  • 4
  • 28
  • 32
user1046037
  • 16,755
  • 12
  • 92
  • 138
  • 3
    See the latter part of [this answer](http://stackoverflow.com/a/14105056/1271826), which shows the "Record reference counts" feature, which helps identify all strong references. – Rob Jun 22 '14 at 03:54
  • 1
    Thanks a lot !! Could you pls post that as an answer so that I can mark it as answered. Awesome, Under Allocation List the column category corresponds to the object. – user1046037 Jun 22 '14 at 04:30

1 Answers1

3

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.

bassim
  • 886
  • 1
  • 21
  • 33
Ryan
  • 3,853
  • 4
  • 28
  • 32