Re: "intelligent" flexible popup
Re: "intelligent" flexible popup
- Subject: Re: "intelligent" flexible popup
- From: Quincey Morris <email@hidden>
- Date: Sun, 19 Jul 2009 16:58:11 -0700
On Jul 19, 2009, at 16:43, Daniel Child wrote:
As a follow-up to the previous question on popups in a table, I am
wondering what APIs you can use to implement the kind of
"intelligent" popups one finds, for example, when filling out the
State field in forms needing an address. You start typing "Ma" and
Maine or Maryland come up. But you also have the choice to type
something not in the list of choices.
This seems to be a combination text field / popup menu. Again,
either an API hint or link to a tutorial would be very helpful.
Thanks.
You're possibly looking for NSComboBox.
But keep in mind that there's an essential difference between
NSPopUpButton and NSComboBox. A popup button is a kind of *menu*,
which a combo box is a kind of *text field*.
The popup button tells you which of the menu choices is in effect (a
selection index). The combo box gives you arbitrary text, typing-
assisted by the popup list and (optionally) autocompletion.
There isn't a standard control that allows you to make a menu choice
by typing a partial name. (NSComboBox has some support for finding out
this information, but I doubt it's feasible in the context of a table
view, and you'd *still* have to prevent the table view from treating
it like a text field.)
_______________________________________________
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