Yes, if that string is going to go into the UI of your app you
ought to use a CFNumberFormatter.
I have a question about doing the opposite. Does CFNumberFormatter
detect formatting error in a string when converting it to number? To
be specific, can I use CFNumberFormatter to help filtering text field
input?
I tried CFNumberFormatterGetValueFromString to convert a string to
floating number. It happily accepts string like "1.2.aa" and converts
it to 1.2 and returns true. Is there any way to report such error?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden