Contextual Menu doesn't respond to control+click
Contextual Menu doesn't respond to control+click
- Subject: Contextual Menu doesn't respond to control+click
- From: Brian Amerige <email@hidden>
- Date: Thu, 24 Aug 2006 20:52:02 -0400
Hi all,
I've got a contextual menu which works perfectly in my NSTableView,
with the exception of the fact that it doesn't respond to control
+clicks, but works fine with right clicks. I've got the following in
my NSTableView subclass:
- (void)rightMouseDown:(NSEvent *)theEvent
{
NSPoint p = [super convertPoint:[theEvent locationInWindow]
fromView:nil];
int i = [super rowAtPoint:p];
if (i < [super numberOfRows])
[super selectRowIndexes:[NSIndexSet indexSetWithIndex:i]
byExtendingSelection:NO];
[NSMenu popUpContextMenu:[super menu] withEvent:theEvent forView:self];
}
Thanks in advance!
Brian Amerige.
_______________________________________________
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