蔡书华Roy
蔡书华Roy

Reputation: 143

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

Upvotes: 8

Views: 3690

Answers (2)

Andrew Andrukhin
Andrew Andrukhin

Reputation: 21

There is a hotkey —> ^CmdShift + H

Upvotes: 2

pille
pille

Reputation: 1411

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).

Upvotes: 13

Related Questions