A O
A O

Reputation: 5698

Is there any way to hide available classes from Interface Builder?

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?

enter image description here

enter image description here

Upvotes: 0

Views: 22

Answers (1)

Ken Thomases
Ken Thomases

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

Related Questions