Problem with IBOutlet
Problem with IBOutlet
- Subject: Problem with IBOutlet
- From: Quentin Mathé <email@hidden>
- Date: Thu, 5 Jul 2001 17:15:32 +0200
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