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:48:29 2006

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.

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