Re: Problem with IBOutlet
Re: Problem with IBOutlet
- Subject: Re: Problem with IBOutlet
- From: Jonathan Hendry <email@hidden>
- Date: Thu, 5 Jul 2001 20:23:05 -0500
On Thursday, July 5, 2001, at 06:07 , Art Isbell wrote:
On Thursday, July 5, 2001, at 10:57 AM, Quentin Mathi wrote:
Le jeudi 5 juillet 2001, ` 07:50, Scott Herz a icrit :
Should work. You're sure the connection is made from MyTableView
to the button? If you select the tableview and then bring up the
connection inspector, does the outlet have a dot next to it?
I'm sure the connection is made in IB.
NSTableView is only the view that contains the columns. It is
usually displayed in a NSScrollView. NSTableHeaderView displays
the headers. So it's easy to connect the wrong view. And it may
be easy to click on a view other than a NSTableView in a running
app in which case your mouseDown: method won't be invoked. You
indicate that mouseDown: is invoked but your button is nil. That
could be explained if the connection were from something other
than a NSTableView to your button. All of this makes me question
the wisdom of this design...
In cases like this, it can help to use the non-icon view of IB's
instances pane. That gives you a hierarchical list of the objects
in the nib, and you can drill down to the subview you want.
(I'm sure Art knows this, but others might not)