• 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
Re: NSPopUpButton question (newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPopUpButton question (newbie)


  • Subject: Re: NSPopUpButton question (newbie)
  • From: j o a r <email@hidden>
  • Date: Thu, 10 Mar 2005 17:33:13 +0100


On 2005-03-10, at 17.11, Charilaos Skiadas wrote:

I wanted to implement a "history list" pop-up button with text commands that the user typed, so I wanted to allow multiple items, and so I accessed the menu directly. It worked fine, though I never have to remove an item from the list or any the following commands either. So depends on what you want to do with it I guess.

It's quite common to implement that as a NSComboBox, because it also provides autocompletion which can be nice in these cases. A combo box allows duplicates "out of the box".


Another thing that you could think about is if it wouldn't be OK to strip out old duplicates when adding new entries - in order to both comply with the intended use of NSPopUpButton, but also to keep the list of old entries shorter and easier to use at a quick glance. This would of course not work if you plan to provide an exact history of every action ever performed... It depends on what the purpose of the button is.

j o a r

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSPopUpButton question (newbie)
      • From: Charilaos Skiadas <email@hidden>
References: 
 >NSPopUpButton question (newbie) (From: Aaron Boothello <email@hidden>)
 >Re: NSPopUpButton question (newbie) (From: j o a r <email@hidden>)
 >Re: NSPopUpButton question (newbie) (From: Charilaos Skiadas <email@hidden>)

  • Prev by Date: Re: NSBezierPath and NSAffineTransform
  • Next by Date: Re: AuthorizationExecuteWithPrivileges(): implementation bug or correct behavior?
  • Previous by thread: Re: NSPopUpButton question (newbie)
  • Next by thread: Re: NSPopUpButton question (newbie)
  • Index(es):
    • Date
    • Thread