6

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,595
  • 3
  • 26
  • 31
user1046037
  • 14,608
  • 12
  • 79
  • 117
  • 2
    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
  • 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.

Ryan
  • 3,595
  • 3
  • 26
  • 31