NSComboBox bug?
NSComboBox bug?
- Subject: NSComboBox bug?
- From: matt neuburg <email@hidden>
- Date: Thu, 31 Oct 2002 11:29:52 -0800
On Thu, 31 Oct 2002 12:01:34 -0600, Nicholas Riley <email@hidden> said:
>
On Thu, Oct 31, 2002 at 05:56:28PM +0100, Stiphane Sudre wrote:
>
> In IB I have a NSComboBox, whose menu is:
>
>
>
> 0
>
> 1
>
> 2
>
> 3
>
> 4
>
>
>
> The NSComboBox has a NSNumberFormatter attached to it that only allows
>
> number between 0 and 65535.
>
>
>
> When I run this in IB, the Menu is displaying empty lines.
>
> Is this the expected/designed behavior or not?
>
>
Nope, it's a bug that's been there since 10.0. You can't have a combo
>
box with a formatter if you want the combo box to work.
Piffle. Formatters work perfectly well with comboboxes; I use them all the time. A combination of a formatter and a datasource is a very powerful way to run a combobox.
The problem with the above example is that an NSNumberFormatter expects numeric values, but "0", "1" and so forth aren't numbers; they're strings. m.
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.