Xcode, see Where the method is used

I have a method in some class, and I would like to see exactly where it is used. Compared to Java and Eclipse, you can just tell it to show all the links and even the hierarchy of method calls. Is there something similar in Xcode?

I know that Objective-C does not match the same methods for identifying a method signature as Java (i.e. there is no method for the class, but only a bunch of selectors mapped to the identifier at runtime), so I have a hard time finding how Xcode can do this.

+6
source share
2 answers

Look at here:

enter image description here

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

If you do not use Ctrl-1 for spaces, you can access this menu with it.

Note that you need to use the standard or auxiliary editor: enter image description here

Callers and called parties are not displayed if Version Editor is selected: enter image description here

+6
source

Your best bet is likely to search for strings, but understand that you can use templates (click the small magnifying glass in the search bar in the file browser panel).

You hinted at one of the reasons why it is so difficult to do otherwise. Objective-C runtime provides many different ways to find and execute code.

0
source

All Articles