• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
stringByTrimmingCharactersInSet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stringByTrimmingCharactersInSet


  • Subject: stringByTrimmingCharactersInSet
  • From: Simon Raisin <email@hidden>
  • Date: Wed, 6 May 2009 18:16:04 -0700

NSString *s = [@"1,660.0" stringByTrimmingCharactersInSet:[NSCharacterSet
characterSetWithCharactersInString:@","]];

For some reason s is always "1,660.0".

Shouldn't the comma be removed?

Thanks,
CxT
_______________________________________________

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

  • Follow-Ups:
    • Re: stringByTrimmingCharactersInSet
      • From: Joar Wingfors <email@hidden>
    • Re: stringByTrimmingCharactersInSet
      • From: Graham Cox <email@hidden>
  • Prev by Date: Core Data Issue
  • Next by Date: Re: stringByTrimmingCharactersInSet
  • Previous by thread: Re: Core Data Issue
  • Next by thread: Re: stringByTrimmingCharactersInSet
  • Index(es):
    • Date
    • Thread