Re: Problem with IBOutlet
Re: Problem with IBOutlet
- Subject: Re: Problem with IBOutlet
- From: Quentin Mathé <email@hidden>
- Date: Fri, 6 Jul 2001 11:33:03 +0200
Le vendredi 6 juillet 2001, ` 01:07, Art Isbell a icrit :
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...
I just made a trite error : I instantiate in IB my subclass MyTableView
and control drag a line from it in the instances tabpanel to the
button...
Now I just connect the outlet of the TableView in the main window
directly to the button and it works perfectly.
--
Quentin Mathi
email@hidden