• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dot View + creating custom NSTable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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...


References: 
 >Dot View + creating custom NSTable (From: Alex Reynolds <email@hidden>)

  • Prev by Date: Re: Changing draggedImage in mid-drag
  • Next by Date: Re: Following focus and scrolling controls into view
  • Previous by thread: Re: Dot View + creating custom NSTable
  • Next by thread: RE: Dot View + creating custom NSTable
  • Index(es):
    • Date
    • Thread