Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: view references for a variable?

Tags:

xcode

I am new to Xcode. I am not sure if there is a way to view a variable's references just like "Find all references" in Visual Studio by right click on a var?

For example, in my .h file, I would like to know or view all the references for property isSet:

@interface MyInterface {
   ...
   BOOL isSet; // view all references to this var?
   ...
}
like image 830
David.Chu.ca Avatar asked May 14 '10 04:05

David.Chu.ca


2 Answers

Try using: Find in project -> As symbol context menu. Sometimes you may want to search as definition instead.

like image 125
Casebash Avatar answered Oct 07 '22 10:10

Casebash


Beside Xcode, there is AppCode IDE from JetBrains. And in AppCode it is easily possible, just select Search --> Find Usages.

like image 34
TOP KEK Avatar answered Oct 07 '22 09:10

TOP KEK