FROM : matt neuburg
DATE : Thu Oct 31 20:29:52 2002
On Thu, 31 Oct 2002 12:01:34 -0600, Nicholas Riley <<email_removed>> 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_removed>, 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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Thu Oct 31 20:29:52 2002
On Thu, 31 Oct 2002 12:01:34 -0600, Nicholas Riley <<email_removed>> 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_removed>, 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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Stéphane Sudre | Oct 31, 17:56 | |
| Nicholas Riley | Oct 31, 19:01 | |
| matt neuburg | Oct 31, 20:29 | |
| Nicholas Riley | Oct 31, 20:50 | |
| matt neuburg | Oct 31, 21:04 | |
| Nicholas Riley | Oct 31, 21:31 | |
| matt neuburg | Nov 1, 13:51 |






Cocoa mail archive

