Re: Parsing Delimited Text in Cocoa
Re: Parsing Delimited Text in Cocoa
- Subject: Re: Parsing Delimited Text in Cocoa
- From: Nelson Santos <email@hidden>
- Date: Thu, 14 Jun 2007 22:27:34 -0400
You can grab the text into an NSString and then divide it into an
array using pipe as the separator:
- (NSArray *)componentsSeparatedByString:(NSString *)separator
Nelson
On 14-Jun-07, at 10:23 PM, Carter R. Harrison wrote:
I apologize if this has been asked before but as many of you know,
CocoaBuilder is currently offline, so I have no way to search.
So my question - I have some text in an NSData object that I would
like to parse. The text is delimited with a pipe "|" character.
What's the best way to go about doing this?
Thanks in advance.
-C
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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