Re: Detect when menu closed
Re: Detect when menu closed
- Subject: Re: Detect when menu closed
- From: Steve Palmer <email@hidden>
- Date: Thu, 29 Apr 2004 21:55:12 -0700
Switching nodes when the menu disappears is the goal, so whether it is
done by switching apps or the user cancelling makes no difference.
Apparently a kind chap e-mailed me to point out that I'd overlooked
NSMenuDidEndTrackingNotification which will work for me since I'm
setting the minimum version of my app to Panther.
Thanks!
- Steve
On Apr 29, 2004, at 10:59 AM, Dustin Voss wrote:
On 28 Apr, 2004, at 9:45 PM, Steve Palmer wrote:
Is there a way to tell when a menu I've returned via menuForEvent is
being dismissed? I want to switch the selection of an outline node
when a menu is displayed, then select a different node after the menu
is dismissed.
A menu can be dismissed for several reasons: the user made a
selection, another app displayed a dialog, the user switched apps, or
the user decided to cancel the menu selection by clicking outside the
menu or hitting escape or whatever. Do you still want to switch nodes
if the user cancels or another app comes to front? If not, maybe you
should just change nodes in the menu items' action methods.
_______________________________________________
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.
_______________________________________________
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.