On 09/02/2008, at 4:03 AM, Daniele Corti wrote:
2008/2/8, Michael Halliday <[EMAIL PROTECTED]>:
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]