Re: NSPopUpButton question (newbie)
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