How to programatically close a user opened NSPopUpButton...
How to programatically close a user opened NSPopUpButton...
- Subject: How to programatically close a user opened NSPopUpButton...
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 30 Aug 2007 16:10:14 -0700
I have situation in which I have asynchronous network events (pumped
to the main thread via performSelectorOnMainThread:) that result in
the contents of a popup button's menu changing.
If the user has the menu open (user either single-clicked or is
click-holding the control) items will update in the menu however the
sizing of the menu wont change which results in the appearance of a
partially populated menu and/or other related visual inconsistencies.
Any suggestions / opinions on the "right way" to either close an open
NSPopUpButton or otherwise get it to fully display itself?
I could defer the menu update until the menu is closed but I would
prefer to inform the user as soon as possible since a selection they
are about to make may not exist any more.
-Shawn
_______________________________________________
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