Contextual menus, views, and the Control key
Contextual menus, views, and the Control key
- Subject: Contextual menus, views, and the Control key
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 29 Apr 2003 19:37:23 -0700
Hi...
I RTFM'd and STFA'd[1] and couldn't find a solution for a problem I've
had with views and contextual menus. This has been asked before by
others, but no one seemed to be able to come up with a solution. So let
me try asking...
I want to change how an NSTableView object responds to an event that
brings up a contextual menu. So I subclassed the view and overrode its
-rightMouseDown: event and did my work there. It worked with no
problems.
But I realize that there's a whole lot of people out there who have
single button mice and use the Control key to get contextual menus, and
so I'd like to get my solution working with Control-clicking as well as
the right mouse button. My problem is I can't figure out which
NSView/NSResponder method gets called when a user Control-clicks the
view. I already tried -mouseDown: and it mysteriously isn't called at
all. It's obviously not -rightMouseDown: either.
So does anyone know what I might have overlooked? I know it's possible,
since I've seen Project Builder do this... TIA...
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://dreamless.home.attbi.com/
"Building the future and keeping the past alive are one and the same
thing." - Metal Gear Solid 2
[1] Searched the *$(@ing archives
_______________________________________________
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.