Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode, see where a method is used

Tags:

xcode

I have a method in some class and i would like to see exactly where it is being used. Compared to Java and Eclipse you can simply tell it to show all the references and even a call hierarchy of a method. Is there anything similar in Xcode?

I know that Objective-C does not follow the same ways of identifying method signature as Java does (i.e. there is no method to a class, just a bunch of selectors mapped to an id at runtime), so i'm having a hard time trying to figure out how Xcode could even accomplish this.

like image 791
JHollanti Avatar asked Dec 18 '12 21:12

JHollanti


1 Answers

Look here:

enter image description here

There is no equivalent menu or context menu. In addition to callers you can access callees, superclasses, etc.

If you don't use Ctrl-1 for Spaces you can access that menu with it.

Note that you need to use the Standard or Assistant Editor: enter image description here

Callers and callees are not shown if the Version Editor is selected: enter image description here

like image 194
djromero Avatar answered Sep 19 '22 14:09

djromero