Re: Problem with IBOutlet
Re: Problem with IBOutlet
- Subject: Re: Problem with IBOutlet
- From: Scott Herz <email@hidden>
- Date: Thu, 5 Jul 2001 10:50:20 -0700
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?
Scott.
On Thursday, July 5, 2001, at 08:15 AM, Quentin Mathi wrote:
I have a subclass MyTableView of NSTableView and it's the custom class
of the proxy instance TableView in my main window. I have also a
NSButton in the main window and I have created an outlet in MyTableView
connected to it.
Here is MyTableView.h :
#import <Cocoa/Cocoa.h>
@interface MyTableView : NSTableView
{
IBOutlet id aButton;
}
@end
And here is MyTableView.m :
#import "MyTableView.h"
@implementation MyTableView
- (void)mouseDown:(NSEvent *)event
{
[aButton setTitle:@"Show more"];
}
@end
When I run the project, nothing happens when I click on the TableView
in the main window, because the value of aButton is nil... why ?
Thanks.
--
Quentin Mathi
email@hidden
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev