add a GUI class/control to object library of Interface Builder
I ha开发者_C百科ve created a subclass of NSButton. Is it possible to add the GUI class/control to object library of Interface Builder. If sure, is there any tutorial?
Welcome any comment
If your goal is just to make IB create an instance of your class instead of an NSButton then you can just drag an NSButton onto the window like normal, and change the class name in the Identity Inspector pane.
It is possible to add your control to the object library, I believe you need to create an IBPalette.
精彩评论