• 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: Sort Through Commas in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sort Through Commas in Cocoa


  • Subject: Re: Sort Through Commas in Cocoa
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 26 Nov 2008 19:23:35 -0700


On Nov 26, 2008, at 7:12 PM, Pierce Freeman wrote:

Assuming that you get input from user via a regular text field, I am
wondering how you can sort through the commas and then save each of the
words that come before the commas into a array. For example, the words
below would be what the user inputted:


Apple, banana, grapes


NSArray *fruitsAndBerries = [@"Apple, banana, grapes" componentsSeparatedByString:@", "];

Nick Zitzmann
<http://www.chronosnet.com/>



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Sort Through Commas in Cocoa
      • From: Pierce Freeman <email@hidden>
References: 
 >Sort Through Commas in Cocoa (From: Pierce Freeman <email@hidden>)

  • Prev by Date: Sort Through Commas in Cocoa
  • Next by Date: Re: Sort Through Commas in Cocoa
  • Previous by thread: Sort Through Commas in Cocoa
  • Next by thread: Re: Sort Through Commas in Cocoa
  • Index(es):
    • Date
    • Thread