Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find in Xcode all caller functions of a specific function like eclipse's Call Hierarchy?

how do I find in XCode all caller functions of a specific function like eclipse's Call Hierarchy

like image 286
蔡书华Roy Avatar asked Nov 16 '11 04:11

蔡书华Roy


1 Answers

Since the release of XCode 4.4, this functionality exists and is called "show related items". There are multiple ways of accessing the pop-up menu that will allow you to view all callers and callees, among other things.

The fastest way is:

  1. Mark method in code (using your cursor or double click name)
  2. Press Ctrl+1
  3. Select "Callers" from the pop-up menu

You can also go View->Standard Editor->show related items or press the tiny button just left of the arrow buttons in the line just above the editor window (where it shows your currently selected file and method).

like image 196
pille Avatar answered Oct 12 '22 02:10

pille