Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using the debugger to find all strong references to an object [closed]

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.

like image 548
user1046037 Avatar asked Jun 22 '14 03:06

user1046037


1 Answers

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.

like image 186
Ryan Avatar answered Nov 08 '22 16:11

Ryan