• 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: Parsing strings? File getline?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parsing strings? File getline?


  • Subject: Re: Parsing strings? File getline?
  • From: Steve Bird <email@hidden>
  • Date: Tue, 5 Mar 2002 09:43:29 -0500

On Tuesday, March 5, 2002, at 09:33 , zauhar wrote:

Sorry for such elementary questions, but I have searched to no avail...

Are there no methods for parsing NSStrings? I am looking for something that would split a string into substrings given a set of separator characters (perhaps returning an array of string objects). Right now I am converting the NSString to a C string and using my old favorite strrtok! Seems lame. I could write a method to do this, but I can't believe it is not already sitting there.

Find the file "FoundationTOC.html" in your developer docs.
(Make an alias on your desktop - it's useful).
Open it.
Click on "NSString".
Search for "componentsSeparatedByString:"

I believe that's what you want.


-----------------------------------------------------------------
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
www.Culverson.com (toll free) 1-877-676-8175
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Parsing strings? File getline? (From: zauhar <email@hidden>)

  • Prev by Date: Cocoa, supported by which OS?
  • Next by Date: Re: Cocoa, supported by which OS?
  • Previous by thread: Parsing strings? File getline?
  • Next by thread: Parsing strings? File getline?
  • Index(es):
    • Date
    • Thread