• 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
Contextual menu w/o right click?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Contextual menu w/o right click?


  • Subject: Contextual menu w/o right click?
  • From: Michael Peirce <email@hidden>
  • Date: Wed, 23 Jan 2002 21:29:59 -0500

In a UI I'm working on I'd like to have a menu popup on click rather than right-click (or control-click).

I don't see any API to force a contextual menu to be invoked, though I did see a method in NSView called "popUpContextMenu", but the documentation says "Description forthcoming".

+ (void)popUpContextMenu:(NSMenu*)menu withEvent:(NSEvent*)event forView:(NSView*)view
Description forthcoming.

I've tried using this blindly, but without success.

Anyone know if popUpContextMenu should do what I need?

Or have another solution for putting up a contexual menu-like menu?

--
Michael Peirce
6497 Spinnaker Drive
Lewis Center OH 43035
740-657-1269
email@hidden


  • Follow-Ups:
    • Re: Contextual menu w/o right click?
      • From: Andrew Platzer <email@hidden>
  • Prev by Date: NSAttributedString has initWithHTML method
  • Next by Date: Re: message to nil? (very basic question)
  • Previous by thread: Re: NSAttributedString has initWithHTML method
  • Next by thread: Re: Contextual menu w/o right click?
  • Index(es):
    • Date
    • Thread