FROM : nick briggs
DATE : Thu Dec 09 18:06:00 2004
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
DATE : Thu Dec 09 18:06:00 2004
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
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

