Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

If I understand correctly, all ARC does is automatically add memory-management statements such as retain and autorelease in the proper places in a program. Is there any way to see all the memory-management statements that ARC automatically adds to a program?

share|improve this question

2 Answers 2

In Xcode's assistant editor, choose to view the Assembly for the file you're working on. You should see calls to functions like objc_retain and similar; these are the functions inserted by the compiler to support ARC.

share|improve this answer

You can use CFGetRetainCount to see the retain count:

CFGetRetainCount( (__bridge void*) object );
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.