Re: Distinguishing between table row/column double click?
Re: Distinguishing between table row/column double click?
- Subject: Re: Distinguishing between table row/column double click?
- From: Fritz Anderson <email@hidden>
- Date: Tue, 11 May 2004 11:24:08 -0500
- (IBAction) doubleClick: (id) sender
{
NSTableHeaderView * header = [sender headerView];
NSEvent * event = [NSApp currentEvent];
NSPoint location = [event locationInWindow];
location = [[header superview] convertPoint: location fromView: nil];
if ([header hitTest: location])
NSLog(@"In header view");
else
NSLog(@"In row");
}
On 9 May 2004, at 11:09 AM, Reni Puls wrote:
I can set a double-click target for an NSTableView which gets called
(quote:) "when the user double-clicks an uneditable cell or a column
header". But is there a way to distinguish between a double-click on a
row and a double-click on a column header?
The action I want should only be executed when the user double-clicks
on a table row, but not when they click on a column header. Is there a
way to distinguish between these two actions?
--
Fritz Anderson
Consulting Programmer
http://resume.manoverboard.org/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.