Mailing Lists: Apple Mailing Lists

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

How to programatically close a user opened NSPopUpButton...



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

This email sent to 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.