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

Re: Close a menu programmatically


  • Subject: Re: Close a menu programmatically
  • From: Peter Maurer <email@hidden>
  • Date: Tue, 29 Jan 2008 18:37:33 +0100

Or is there a Cocoa way?

There's [NSMenu cancelTracking] since Mac OS X 10.5.

The corresponding Carbon function is CancelMenuTracking(), but that doesn't always work (i.e., it ceased working for me in Mac OS X 10.4, at least when used in a cocoa application); so I did actually have to resort to faking an escape keystroke from time to time.

Peter.
_______________________________________________

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: 
 >Close a menu programmatically (From: Pierre Bernard <email@hidden>)

  • Prev by Date: Re: The mouse is where, again?
  • Next by Date: Searching for "whole word" in NSString
  • Previous by thread: Close a menu programmatically
  • Next by thread: [Leopard, GC] Custom view in NSMenuItem crashes
  • Index(es):
    • Date
    • Thread