• 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: Removing (foo) from a NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing (foo) from a NSString


  • Subject: Re: Removing (foo) from a NSString
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 12 Jul 2011 13:23:02 -0700

On Jul 12, 2011, at 12:42 PM, Fritz Anderson wrote:

> It should be easy to walk the string with NSScanner.

I always end up taking the ghetto route and just using -rangeOfSubstring: and substringWithRange: for stuff like this. It would probably be cleaner to use NSScanner though, at least until NSRegularExpression goes mainstream.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >Removing (foo) from a NSString (From: "Eric E. Dolecki" <email@hidden>)
 >Re: Removing (foo) from a NSString (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Removing (foo) from a NSString
  • Next by Date: programmatically sorting an NSTableView
  • Previous by thread: Re: Removing (foo) from a NSString
  • Next by thread: Re: Removing (foo) from a NSString
  • Index(es):
    • Date
    • Thread