Re: Close a menu programmatically
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