Framework Classes in IB
Framework Classes in IB
- Subject: Framework Classes in IB
- From: mw <email@hidden>
- Date: Tue, 31 Dec 2002 17:18:15 -0500
I now (finally) have a working rollover button class that I can use in my
software. So to make sure I compiled it (as a framework) correctly, I made a
little project that used the class (just a one window, 2 control interface
that demonstrated that the class works). But I've come across a problem. If
I want to have an instance of this class in my nib file (since it is a
button, after all), I figured that I could just drag the header file that
defined the class from the framework in the little project into IB and then
set the Custom Class of the button to NPRolloverButton (the name of the
class).
This seems to work at first, as I can import the class and set the button to
that class. But whenever I try to run the program, I get this error followed
by the program exiting from Signal 5 (SIGTRAP):
2002-12-31 17:16:08.976 Rollover Class Demo[1068] Unknown class
NPRolloverButton in Interface Builder file.
I also get 3 more errors telling me that the selectors that are implimented
in this class aren't recognized (the reasons for this are obvious):
2002-12-31 17:16:09.222 Rollover Class Demo[1068] *** -[NSImageView
setController:]: selector not recognized
So, my question is: is there any way to import a class from a framework into
IB without having to make a whole IB palette or whatever? I would really
like to avoid that if possible (it is just too complex for something as
small as this).
TIA,
mw
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.