Skip navigation.
 
mlRe: NSComboBox -- How do I limit user typing to what is in the list
FROM : j o a r
DATE : Thu Jun 08 22:33:44 2006

On 8 jun 2006, at 22.28, Scott Mitchell wrote:

> So if the user types  "J" it selects January, but then if the user 
> types "Ju" it selects June. That all works fine by turning on the 
> [combobox setComplets:YES]. But if the user
> types say "Q" nothing gets put in the edit field. I don't want the 
> user to be able to type anything that is not in the list.


How about using a regular pop-up button? If you want to allow for the 
user to "type-ahead", then direct them to the "full keyboard access" 
functionality of the keyboard shortcuts section of system preferences.

j o a r