Re: Parsing strings? File getline?
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.