<Cocoa / Cocoa.h> location

I'm new to Mac OS X development. In the Xcode / Cocoa developer environment, every Objective-C project starts with
#import <Cocoa/Cocoa.h>
It works fine, but I'm puzzled by the location of the Cocoa.h file. On my file system, there is no Cocoa.h file in the Cocoa folder. I tried "find / Cocoa / Cocoa.h" and "find Cocoa / Cocoa.h" nothing was found.
Can someone give me a hint about how and where the compiler finds the Cocoa.h header in the #import expression above.

Thanks, Microsoft Addict Recovery

+3
source share
3 answers

Cocoa/ /System/Library/Frameworks/Cocoa.framework/Headers/. , "" , cntrl-click " " .

+6

- Xcode .
XCode "" , .hmap, .hmap gcc ().
var HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES Cocoa/Cocoa.h #import.
, Finder .hmap - Terminal .

+3

Spotlight, , , .

0

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


All Articles