开发者

add a GUI class/control to object library of Interface Builder

开发者 https://www.devze.com 2023-04-04 13:50 出处:网络
I ha开发者_C百科ve created a subclass of NSButton. Is it possible to add the GUI class/control to object libraryof 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消