FROM : Nicholas Riley
DATE : Thu Oct 31 20:50:59 2002
On Thu, Oct 31, 2002 at 11:29:52AM -0800, matt neuburg wrote:
> >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.
It would be lovely if it were documented somewhere.
My bug report with Apple remains open, so I assume they also consider
this behavior to be a bug. In the specific case of Pester, I want to
complete with dates, not numbers, and I don't want the formatter to
apply to the dates because I want them represented as human-readable
dates (e.g. "tomorrow" instead of "1/11/02").
> 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.
This makes it impossible to edit the combo box list from IB - again,
this is not documented.
--
=Nicholas Riley <<email_removed>> | <http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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:50:59 2002
On Thu, Oct 31, 2002 at 11:29:52AM -0800, matt neuburg wrote:
> >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.
It would be lovely if it were documented somewhere.
My bug report with Apple remains open, so I assume they also consider
this behavior to be a bug. In the specific case of Pester, I want to
complete with dates, not numbers, and I don't want the formatter to
apply to the dates because I want them represented as human-readable
dates (e.g. "tomorrow" instead of "1/11/02").
> 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.
This makes it impossible to edit the combo box list from IB - again,
this is not documented.
--
=Nicholas Riley <<email_removed>> | <http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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

