Re: Getting the context of a context menu
Re: Getting the context of a context menu
- Subject: Re: Getting the context of a context menu
- From: Andy Lee <email@hidden>
- Date: Fri, 13 Apr 2007 09:41:52 -0400
On Apr 13, 2007, at 9:35 AM, Andy Lee wrote:
I just had another idea -- maybe you could subclass NSMenu and
override +popUpContextMenu:withEvent:forView: to remember where the
mouse was at the time the menu popped up. From that you could
figure out what view was under that mouse position. I don't know
if this would even work
Besides the fact that I'm not sure
+popUpContextMenu:withEvent:forView: actually gets called, I don't
know if it's possible with Universal Access to navigate to contextual
menus using just the keyboard. If so, the mouse location is irrelevant.
But wait a minute -- I just noticed the "forView:" argument in that
method. Maybe that's what you want?
--Andy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden