Hossam Ghareeb
Hossam Ghareeb

Reputation: 7123

How to add a link in Xcode comment to open another source code file?

I'm wondering if its possible to add a link (hyperlink) in a comment to open another source code file (in the same project) or a specific method in another class in Xcode.

Upvotes: 4

Views: 1540

Answers (1)

Taj Ahmed
Taj Ahmed

Reputation: 895

Here is a little cheat to use links #pragma YourClass.m

UPDATE: Using inside comment //<YourClass>

To Access a method use // <yourMethodName> your method name need not to be of same class. you can have a cross class reference as well. currently it works for method without parameters only

NOTE: in comment don't include fileExtension like .h or .m

Upvotes: 2

Related Questions