Canceling a pop-up menu, continued
Canceling a pop-up menu, continued
- Subject: Canceling a pop-up menu, continued
- From: Peter Maurer <email@hidden>
- Date: Fri, 16 Jan 2004 04:32:48 +0100
Is there any way to programatically cancel the display of a menu that
has been activated with NSMenu's popUpContextMenu:withEvent:forView:?
Or can I do this with the carbon menu manager? (I'm aware of my
NSMenu's MenuRef anyway.)
I forgot to mention: An easy solution would be to simulate an [esc]
keystroke with NSEvent's keyEventWithType and then have my NSApp post
this event. I just tested it, and it works.
But that somehow doesn't feel like the way one _should_ do it. Is there
an "official" way?
Peter Maurer.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.