Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I navigate through a method call hierarchy in Xcode 4?

I come from Eclipse, I would like to know if there is a way in Xcode 4 to navigate through method calls like there. I know I can jump to the definition of a method, but I want to know who is calling that method/function. The only way I've found is doing a regular text search, but that's not very helpful.

like image 343
Sebastian Juarez Avatar asked Nov 06 '11 11:11

Sebastian Juarez


People also ask

How to see the call hierarchy Xcode?

Xcode can show the callers and callees of the current function or method. This function is accessed from the Show Related Items menu, or by using the Assistant editor and selecting Callers or Callees in the jump bar pop-up menu. This is the correct answer.

How do I search for a function in Xcode?

Find Text or Patterns in Your Source Code To find text in a file, open the file in the Xcode source editor and choose Find > Find from the menu bar. Xcode displays the Find bar and its search controls at the top of the file. Enter a search term. Xcode searches the file, highlights matches, and notes how many it finds.


1 Answers

Since Xcode 4.4 the feature to look up the immediate caller and/or callees of a method has been available. Unfortunately, there doesn't seem to be a handy hierarchy view as there is in Eclipse.

What's New in Xcode 4.4

Xcode can show the callers and callees of the current function or method. This function is accessed from the Show Related Items menu, or by using the Assistant editor and selecting Callers or Callees in the jump bar pop-up menu.

like image 50
Justyn Avatar answered Oct 04 '22 03:10

Justyn