Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Popup dismissal



Never mind. I figured out I can detect action dismissal with a simple
boolean (actionDismissed = YES when receiving a
NSPopUpButtonWillPopUpNotification, actionDismissed = NO when
receiving a NSMenuWillSendActionNotification).


On Sat, Jul 5, 2008 at 2:46 PM, Fabian <email@hidden> wrote:
> Hi,
>
> I need a notification when the user dismisses a popup menu _without
> having actually clicked on a menu item_. A clumsy way of doing this
> would be to check if the mouse is hovering over the menu in
> NSPopUpButtonCell's "popUpDismissed" method. This way I can detect if
> the user cancelled the operation by clicking on some other UI element.
> But, naturally, this doesn't work if the user dismissed the menu by
> pressing the escape key (because the cursor will still be hovering
> over the menu). Is there a better way to do this?
>
> Thanks.
> F.
>
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Popup dismissal (From: Fabian <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.