• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to programatically close a user opened NSPopUpButton...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to programatically close a user opened NSPopUpButton...
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: Who Calls Accessors in Bookmarks?
  • Next by Date: Re: How to programatically close a user opened NSPopUpButton...
  • Previous by thread: Re: Who Calls Accessors in Bookmarks?
  • Next by thread: Re: How to programatically close a user opened NSPopUpButton...
  • Index(es):
    • Date
    • Thread