Re: stringByTrimmingCharactersInSet
Re: stringByTrimmingCharactersInSet
- Subject: Re: stringByTrimmingCharactersInSet
- From: Joar Wingfors <email@hidden>
- Date: Wed, 6 May 2009 20:28:27 -0700
On 6 maj 2009, at 18.16, Simon Raisin wrote:
NSString *s = [@"1,660.0" stringByTrimmingCharactersInSet:
[NSCharacterSet
characterSetWithCharactersInString:@","]];
For some reason s is always "1,660.0".
Shouldn't the comma be removed?
No, check the documentation... :-)
"Returns a new string made by removing from both ends of the
receiver characters contained in a given character set."
j o a r
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden