Reputation: 3
I am using Xcode 5. However sometime when I used cmd+click to check the definition, I also wanna know how the code look like.
For example, when I cmd+click the instance method of the array name lastObject, the screen will jump to the code -(id)lastObject; under NSArray.h
The problem is I want to see the code in NSArray.m not .h file. Is there any way to go or jump to implementation file?
Thanks!!
Upvotes: 0
Views: 334
Reputation: 939
Unfortunately, the Cocoa frameworks are encapsulated inside XCode so you can't access the *.m files of Foundation objects. However, you can option+click
on Cocoa methods to quickly open up Apple's documentation where all the information about the method's usage should be present.
Upvotes: 2
Reputation: 367
The .m file is private. You can not see any code in .m files created by Apple. If its your own code then it will go to the appropriate implementation of the method you click.
Upvotes: 3