• 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
update nspopupbutton at use-time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

update nspopupbutton at use-time


  • Subject: update nspopupbutton at use-time
  • From: Martin Hewitson <email@hidden>
  • Date: Fri, 26 Aug 2011 17:15:05 +0200

Dear list,

I'm guessing this is easy, but I can't find a solution anywhere.

I would like to populate the list in an NSPopupButton just as the user clicks but before the menu is shown. So I'd like an NSPopupButton delegate message -popupWillAppear: or something like that.

Does anyone know of a way to achieve this? The menu will show a dynamically changing set of options, so I need to update it before the user sees the list.

Best wishes,

Martin

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martin Hewitson
Albert-Einstein-Institut
Max-Planck-Institut fuer
    Gravitationsphysik und Universitaet Hannover
Callinstr. 38, 30167 Hannover, Germany
Tel: +49-511-762-17121, Fax: +49-511-762-5861
E-Mail: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





_______________________________________________

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: update nspopupbutton at use-time
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: NSDate description in Lion shows GMT instead of local time
  • Next by Date: Re: Sharing a persistent store between iOS and Mac
  • Previous by thread: Re: Text rendered in NSImage is fuzzy
  • Next by thread: Re: update nspopupbutton at use-time
  • Index(es):
    • Date
    • Thread