• 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: Getting line numbers from an NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting line numbers from an NSString


  • Subject: Re: Getting line numbers from an NSString
  • From: Paul Bruneau <email@hidden>
  • Date: Fri, 11 Apr 2008 13:30:14 -0400

On Apr 11, 2008, at 1:23 PM, allan greenier wrote:
Greetings,

Have I missed this somewhere in the Cocoa - Foundation api?

If I have an NSString that is multi lined (say in contains "\n" characters)
is there an api call so I can get line 0, line 1, ect? Or should I just code that myself?

Hi there-

Yes you missed componentsSeparatedByString: in NSString I think.
_______________________________________________

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: 
 >Getting line numbers from an NSString (From: allan greenier <email@hidden>)

  • Prev by Date: Re: Efficient object wrappers and GC
  • Next by Date: Re: Getting line numbers from an NSString
  • Previous by thread: Getting line numbers from an NSString
  • Next by thread: Re: Getting line numbers from an NSString
  • Index(es):
    • Date
    • Thread