• 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
Re: stringByTrimmingCharactersInSet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >stringByTrimmingCharactersInSet (From: Simon Raisin <email@hidden>)

  • Prev by Date: Re: stringByTrimmingCharactersInSet
  • Next by Date: Re: NSXMLParser frees itself on error?
  • Previous by thread: Re: stringByTrimmingCharactersInSet
  • Next by thread: Dynamic Layout
  • Index(es):
    • Date
    • Thread