Adding text in NSNumberFormatter string - 'e' not allowed?
Adding text in NSNumberFormatter string - 'e' not allowed?
- Subject: Adding text in NSNumberFormatter string - 'e' not allowed?
- From: Rick Hoge <email@hidden>
- Date: Sat, 2 Apr 2005 09:07:47 -0500
Recently it occurred to me that it would be useful to add text in the
Interface Builder format field for number formatters.
For example instead of "#,##0.00" in the field for Positive I might
"#,##0.00 kilometres" or something (to have units added).
What seems to happen is that the letter 'e' is removed from the text
when the edit is committed by tabbing out of the field, so I get
"#,##0.00 kilomtrs"
I am guessing that 'e' is some kind of reserved character, but I can't
find a reference to this usage in the docs. So my two questions are:
1) is this a dangerous misuse of NSNumberFormatter?
2) if not, is there any way I can quote characters or strings to have
them included in the format string?
Thanks for any suggestions,
Rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden