I have a NSView that only appears in a window when a certain activity is in progress, and there's an NSPopUpButton in the view that acts as a gear menu with actions that relate to the activity in progress. The issue is that if the button's menu is still open when activity finishes and the view is removed from the window, the button is gone but the menu is still displayed, and I can't get the menu to dismiss before I remove the view.

The method -[NSPopUpButtonCell dismissPopUp] doesn't seem to work. I've filed <rdar://problem/6216372> on that.

I've tried a bunch of different things to dismiss the popup menu, but none of them have worked. I'd greatly appreciate hearing about any proven techniques for dismissing the popup menu. Thanks!

-Jeff

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to