Skip navigation.
 
mlRe: NSComboBox -- How do I limit user typing to what is in the list
FROM : Scott Mitchell
DATE : Thu Jun 08 23:04:07 2006

On Jun 8, 2006, at 2:48 PM, j o a r wrote:

>
> On 8 jun 2006, at 22.43, Scott Mitchell wrote:
>

>> Yeah that is what I wanted, but since our Windows counterpart uses 
>> a Combo Box for the same thing, we have to sue a Combo box also 
>> (Mainly for Documentation and Training purposes). I have argued 
>> about this, but it is not worth fighting them about as far as I am 
>> concerned. I save the fights for what really matter.

>
> Hm... Well, it's not unlikely that you could get what you're 
> looking for by implementing the "-comboBox:completedString:" and / 
> or "-comboBox:indexOfItemWithStringValue:" data source methods.


Yeah I already tried these, and it does not work correctly, it puts 
in the text anyway even if nothing matches.

>
> Windows is moronic in it's use of controls that looks like combo-
> boxes where the functionality provided is actually a pop-up button. 
> You can't tell what type of control it is by looking at it. Only by 
> attempting to enter some text, you'll notice if it's using combo 
> box or pop-up button behaviour.
>
> j o a r
>
>


Exactly.

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