• 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
exploding string into array...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

exploding string into array...


  • Subject: exploding string into array...
  • From: email@hidden
  • Date: Thu, 19 Feb 2004 12:28:14 -0800

ok so i have a string with field names in or ie "field1,field2,field3"
when i use:

NSArray *fieldsArray = [fields componentsSeparatedByString:@","];

the resulting array has them in no particular order i figure it would
break them into an array like:

array[0] - field1
array[1] - field2
array[2] - field3

but it doesn't am i doing something wrong or is there a better way to
do this i just need an array with these fields in the correct order i
would be nice not having to add them 1 at a time...
_______________________________________________
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.

  • Follow-Ups:
    • Re: exploding string into array...
      • From: Jens Bauer <email@hidden>
  • Prev by Date: Re: Priotiry
  • Next by Date: Re: inserting carriage / hard returns into a string...
  • Previous by thread: Re: inserting carriage / hard returns into a string...
  • Next by thread: Re: exploding string into array...
  • Index(es):
    • Date
    • Thread