Re: getting rid of thousand separator
Re: getting rid of thousand separator
- Subject: Re: getting rid of thousand separator
- From: Shawn Erickson <email@hidden>
- Date: Fri, 19 May 2006 18:31:04 -0700
On May 19, 2006, at 6:00 PM, Pierce T. Wetter III wrote:
On May 19, 2006, at 5:44 PM, Shawn Erickson wrote:
On 5/19/06, Tolga Katas <email@hidden> wrote:
Hi List,
I have an NSString that holds a number like 14,500 ( with a
comma ,
Thousands separator)
Is there an easy way to get rid of the separator so i can turn
this into
an int?
-[NSString intValue] is one option to consider...
<http://developer.apple.com/documentation/Cocoa/Reference/
Foundation/ObjC_classic/Classes/NSString.html#//apple_ref/occ/
instm/NSString/intValue>
That won't work.
Yup. NSFormatter is the right way.
-Shawn
_______________________________________________
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