Xcode: How to find the source code for standard or system libraries?

The Xcode question is here: if I program in C ++ or target-C, and I have the #include or #import library; eg

#include <iostream>
#import <Cocoa/Cocoa.h>

I am often unsure where to look for these header files in the directory structure on my Mac. In other development environments, you can right-click on the included or imported file name and be able to go to the source. Is there an equivalent function in Xcode?

Also, for the standard C ++ libraries and Cocoa infrastructure, is the source code available for the implementation files or only headers along with compiled link libraries?

+3
source share
2 answers

- , . , .

. , .h, NSURLConnection.h. , .

alt text

+2

Apple . option-double-click Apple .

+4

Source: https://habr.com/ru/post/1744868/


All Articles