• 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 Delimited Text in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Parsing Delimited Text in Cocoa (From: "Carter R. Harrison" <email@hidden>)

  • Prev by Date: Re: Error and Exception Handling: When to use
  • Next by Date: Re: RS: Debugging question
  • Previous by thread: Parsing Delimited Text in Cocoa
  • Next by thread: Re: Parsing Delimited Text in Cocoa
  • Index(es):
    • Date
    • Thread