Hi Ricky,
Thanks for the link to the sample code.
My classdescription file is named correct. My custom class is MyControlsView.
After having downloaded and compiled the sample project, I experience the same problems when using my own plugin - "sigh".
The problem is that I cannot figure out, how to use the plugin from a client.
I have tried to add the framework to my client. But when I start the Interface Builder the custom controls does not appear in the IB-library. According to the documentation this is to be expected:
"How you deploy your Interface Builder plug-in to clients depends heavily on how you deploy your custom controls to those same clients. Apple recommends that you deploy custom controls using a custom framework. A custom framework makes plug-in integration almost trivial for yourself and for the clients of your framework. If you are unable to use a custom framework, however, users can load your plug-in manually into the Interface Builder environment."
If I try to load the plugin manually from IB's Preference Plug-In dialog I get an error dialog.
According to the documentation all this should be trivial, but ...
On Jul 16, 2008, at 10:10 PM, Ricky Sharp wrote: On Jul 16, 2008, at 2:44 PM, Anders Lassen wrote:
The answers to your questions are:
1) Principals Class name is: "MyControls". That is also the name of the IBPlugin class.
2) I only have one class description file, that is "MyControlsView.classdescription". Note that I have only one custom object, so I guess this is ok.
3) Product Name is "MyControls".
Your .classdescription files need to be named according to your actual controls. So for your MyButton control, you'd need to have a MyButton.classdescription
For another example plug-in that may be helpful during your development:
<http://www.instantinteractive.com/private/samplecode/MyIBPlugin.zip>
___________________________________________________________ Ricky A. Sharp mailto:email@hidden Instant Interactive(tm) http://www.instantinteractive.com
|