• 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: Locating a contextual menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Locating a contextual menu


  • Subject: Re: Locating a contextual menu
  • From: Andy Lee <email@hidden>
  • Date: Sun, 09 Jan 2011 09:21:33 -0500

On Jan 9, 2011, at 8:58 AM, Thomas Davie wrote:
> I'd like in my app to be able to position an item by right clicking, and selecting something from a contextual menu.  I'm struggling with this though, I don't see any way to find the position of the click that caused the contextual menu to appear.

Check out NSView's menuForEvent: method.

--Andy


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

References: 
 >Locating a contextual menu (From: Thomas Davie <email@hidden>)

  • Prev by Date: Locating a contextual menu
  • Next by Date: Re: CGImageForProposedRect not scaling image
  • Previous by thread: Locating a contextual menu
  • Next by thread: Avoid selection of text in NSTextField
  • Index(es):
    • Date
    • Thread