Re: decimal . or , interchangeable
Ondřej Čada <[email protected]> Fri, 27 Apr 2012 00:39:18 +0200
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
Chuck, thanks a lot! On Apr 26, 2012, at 9:05 PM, Chuck Hill wrote: > I think you will need a custom NSTimestampFormatter subclass for this. I suppose you meant an NSNumberFormatter subclass, right? Or am I = missing some fine point there? Is there a way to "install" such an object globally to be used for all = numeric form fields, or do I have to go through all forms and all fields = and explicitly fill something like = 'formatter=3D"$application.myFormatter"' to each of them? That's what = I'd like to get rid of -- if possible. Thanks again, OC > On 2012-04-26, at 8:13 AM, Ond=C5=99ej =C4=8Cada wrote: >=20 >> Hello again, >>=20 >> the client want me to change a pretty old and pretty big WO = application so that both '.' and ',' work interchangeably for a decimal = point on input, in all fields of all forms. >>=20 >> I know a number of ways to do that for a specific field, but before I = dive into that, isn't there a way to say globally for an entire WO = application: "Hey, whenever and wherever you are converting a string to = a number, consider '.' and ',' equal"? That would help a lot. >>=20 >> I went through the NSNumberFormatter API, but found nothing :( >>=20 >> Thanks and all the best, >> --- >> Ondra =C4=8Cada >> OCSoftware: [email protected] http://www.ocs.cz >> private [email protected] http://www.ocs.cz/oc