Re: Dot View + creating custom NSTable
Re: Dot View + creating custom NSTable
- Subject: Re: Dot View + creating custom NSTable
- From: Carlos Weber <email@hidden>
- Date: Mon, 17 Sep 2001 07:57:13 -1000
On Monday, September 17, 2001, at 03:38 , Alex Reynolds wrote:
Dear Dev-list,
I've been working through the Cocoa documentation and the Learning
Cocoa book.
So far I have the following two questions:
-- is there a bug in the Dot View code that the slider and color well
do not respond to user input?
<snip>
Either changing colors or dragging the slider in the Dot View example
from the Learning Cocoa book does not change the color or radius of the
dot that is drawn. I went through coding the example and creating the
nib Window and connections three times before giving up. Is there
something I could do wrong that would cause this?
As Bradley said in another post, the code does work. I would suggest
downloading the example code from the O'Reilly web site ( I have done
this, and I can confirm that the DotView example compiles and runs).
Then compare the code AND the nib from the O'Reilly example with your
own.
One common source of confusion is how custom view classes (such as
DotView) get instantiated: instead of telling IB to instantiate the
class, so that it appears in the main nib window along with the File's
Owner, etc, you assign it as the custom class of the custom view widget
which you have positioned in the "Window" in IB. (This is confusing to
write but quite clear when you actually do it.) This is done using the
"Info Window" (aka Inspector panel) in IB. I apologize if this isn't
your issue...