Skip navigation.
 
mlNSComboBox -- How do I limit user typing to what is in the list
FROM : Scott Mitchell
DATE : Thu Jun 08 22:28:24 2006

I have been looking on the Cocoa List,  I have not found an answer to 
this. I need to limit the user typed text to what is in the list 
already. So for example if I have list of say months

January
February
March
April
May
June
July
August
September
October
November
December

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.

Any help would be appreciated.

Thanks,
Scott Mitchell
Senior Macintosh Software Engineer
Excelsior Software
http://www.excelsiorsoftware.com