Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find usages of an Objective-C function in Xcode?

Tags:

The title pretty much sums it up, normally in an IDE like Eclipse or Intellij, you can highlight/right-click on a method and click on option like "Find Usages", but I don't see an equivalent option in Xcode.

like image 343
krishonadish Avatar asked Nov 01 '12 00:11

krishonadish


People also ask

How do I see references 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.

What is Objective-C in iOS?

Objective-C is the primary programming language you use when writing software for OS X and iOS. It's a superset of the C programming language and provides object-oriented capabilities and a dynamic runtime.

How do I create a .MM file in Xcode?

You just need to change the extension to . mm. There is no option to create a file with . mm extension in Xcode.


1 Answers

EDIT: after reading your question again, I think you are looking for these answers: Find method references in Xcode

The answer by Francisco Garcia shows advanced search options that you can find by clicking the little magnifying glass in the search tab.

You can check for symbol references; this would list all the calls you have to a method.

----------- old answer ------------

If you hold down option and click on something, you can see some helpful hints and a link to documentation.

If you click on something that you have defined, it is helpful enought to link you to the file you declared it in.

like image 96
JoshRagem Avatar answered Sep 27 '22 20:09

JoshRagem