Originally posted by Kristoff:
<STRONG>
Make sure you are implementing ALL of the methods of the abstract parent class.</STRONG>
Uhmmm, actually, all you need to do is add the constructor as so:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
public mySubClassName(NSRect frame)
{
super(frame);
<font color = brown>//any other initialization u would like to do</font>
}
</font>[/code]
And of course, you'll probably want to override this method:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
public void drawRect(NSRect frame)
{
<font color = brown>//drawing code</font>
}
</font>[/code]
I'm not sure if drawRect is abstract or not, but either way you'll probably want to have drawRect(NSRect) described in your subclass.
HTH,
F-bacher