NSOutline / FirstResponder problem
NSOutline / FirstResponder problem
- Subject: NSOutline / FirstResponder problem
- From: nick briggs <email@hidden>
- Date: Thu, 9 Dec 2004 17:06:00 +0000
Hello
I am trying to make an NSOutline view respond to the first mouse click on a window. The outlineview is contained within a NSSpltView
First in my window controllers awakeFromNib I tried
:
[[self window] makeFirstResponder:_outlineView];
Then I subclassed the outlineview and overrid the following methods:
- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
{
NSLog(@"acceptsFirstMouse");
return YES;
}
- (BOOL)acceptsFirstResponder
{
NSLog(@"acceptsFirstResponder");
return YES;
}
These methods are called but the outlineview still does not respond to the first mouse click.
Has anyone got this to work using this approach or any other?
Thanks
Nick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden