• 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
Dynamically populate a popup menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dynamically populate a popup menu


  • Subject: Dynamically populate a popup menu
  • From: Peter N Lewis <email@hidden>
  • Date: Wed, 17 Feb 2010 15:49:18 +0800

Is there any way to dynamically populate a popup menu on the fly (as it is exposed)?

For example, a popup menu that displayed the harddisk hierarchy would need this sort of thing - you wouldn't want the entire thing populated as soon as you click the popup menu, it would take forever and the user would never see most of it.

Can it be done by subclassing NSMenuItem etc?

The only alternative I can see would be some sort of custom control based on NSBrowser, but that would be a lot uglier for this sort of selection.

Thanks,
   Peter.

--
     Keyboard Maestro 4.0.2 now released!  Brand new interface!

Keyboard Maestro <http://www.keyboardmaestro.com/> Macros for your Mac
<http://www.stairways.com/>           <http://download.stairways.com/>










_______________________________________________

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: Dynamically populate a popup menu
      • From: Steven Degutis <email@hidden>
    • Re: Dynamically populate a popup menu
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Puppeting/Automating one application from another?
  • Next by Date: Re: Dynamically populate a popup menu
  • Previous by thread: Bindings: NSArrayController gets a new but equal array, pushes back to model
  • Next by thread: Re: Dynamically populate a popup menu
  • Index(es):
    • Date
    • Thread