Reputation: 5698
Not a practical question but just curious if anybody knows:
In the Identity Inspector, you can choose a custom class for a view.
There is a dropdown, which seemingly magically populates all available NSView
subclasses in the project.
Seeing that I can't explicitly #import
any headers, and I also did not drag in any Objects
into the "Document Outline"
I'm curious as to how IB knows of all of my NSView
subclasses.
Though there would be no reason to, is there any way to hide an NSView
subclass from IB?
Upvotes: 0
Views: 22
Reputation: 90551
The same basic way that it does code completion in your source files. Xcode leverages Clang to index your project, including both your source files and imported modules.
Upvotes: 1