Question

I have written a custom view class that has two sub views, very similar to NSSplitView. I would like my new class to show up with two sub views when it is used in interface builder. The two subviews can be any NSView, but need to be specified by the developer.

How can I add my class to the Object Library?

How do I specify to IB that my class that it has two required subviews (IBoutlets)?

Thanks in advance, Joe

Was it helpful?

Solution

Beyond making the subview properties IBOutlets, it's not possible to customize the way Interface Builder presents custom classes in Xcode 4. It used to be possible in (standalone) Interface Builder before Xcode 4, but that functionality was removed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top