Control-click on NSTableView without subclassing
Control-click on NSTableView without subclassing
- Subject: Control-click on NSTableView without subclassing
- From: David Chan <email@hidden>
- Date: Mon, 14 Nov 2005 11:22:37 +0800
Hi all,
I wonder if I could, without subclassing the nstableview, get notified when
user control-click on the table's row. I believe the click part can be done
by doing:
[tableView setAction:@selector(method:)];
I have another NSCustomView which I subclass and in that case, there is no
problem as I could use
- (void) mouseDown:(NSEvent *)e
and use modifierFlags & NSControlKeyMask
to capture this event.
but I am not sure how to get my tableview notified when the control key is
clicked.
I would rather not subclassing the NStableview, is that possible?
Thank you.
Regards
David
_______________________________________________
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