If you already have a custom object, creating a basic Interface Builder plug-in for that object takes only a few minutes. This chapter walks you through the creation of a plug-in for a simple NSButton subclass. After completing the steps and installing your plug-in, a user should be able to drag your custom button out of the library, add it to a nib file, resize it, reposition it, and save it with the nib file. The user will also be able to customize the basic attributes of the button, since it is derived from the NSButton class. The steps for creating the plug-in are as follows:
Create your plug-in project using Xcode.
Set up your custom button.
Configure the library nib file that comes with the project.
Build your plug-in and load it into Interface Builder.
This chapter does not cover the steps needed to set up an inspector panel. That information is covered in a later chapter.
Creating and Configuring Your Xcode Project
Set Up Your Custom Button Class
Configuring the Library Nib File
Building and Loading the Plug-in
Last updated: 2007-07-18