Re: NSNumberFormatter vs NumberFormat
Re: NSNumberFormatter vs NumberFormat
- Subject: Re: NSNumberFormatter vs NumberFormat
- From: Lachlan Deck <email@hidden>
- Date: Sat, 9 Feb 2008 11:56:29 +1100
On 09/02/2008, at 4:03 AM, Daniele Corti wrote:
2008/2/8, Michael Halliday <email@hidden>:
Just a question regarding the use of NSNumberFormatter vs
NumberFormat.
Hi Michael,
Look I'm not an expert of this, but I see that NumberFormat has
not the
format() method for Objects (it has format(long), format(double)),
so you
cannot use it for Number or BigDecimal Instances (in my apps I only
use
BigDecimal for operations).
You might want to double check the api :-)
You mean this one ?
public StringBuffer format(Object number, StringBuffer toAppendTo,
FieldPosition pos)
And of course you have to set methods for getting the strings, and not
simply bind it in the numberFormat binding.
Yeah, that's the bit that's a real inconvenience IMO. For mine, the
more hard-coding in java code, the less flexible it is for making
quick changes (e.g., for a graphic designer)
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden