• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting the context of a context menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting the context of a context menu
      • From: Andy Lee <email@hidden>
References: 
 >Getting the context of a context menu (From: Nicko van Someren <email@hidden>)
 >Re: Getting the context of a context menu (From: Carmin Politano <email@hidden>)
 >Re: Getting the context of a context menu (From: Nicko van Someren <email@hidden>)
 >Re: Getting the context of a context menu (From: Andy Lee <email@hidden>)
 >Re: Getting the context of a context menu (From: Nicko van Someren <email@hidden>)
 >Re: Getting the context of a context menu (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Getting the context of a context menu
  • Next by Date: Re: Sorting Array Alphabetically
  • Previous by thread: Re: Getting the context of a context menu
  • Next by thread: Re: Getting the context of a context menu
  • Index(es):
    • Date
    • Thread