I have 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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.