Re: Sort Through Commas in Cocoa

2008-11-28 Thread Pierce Freeman
Would this still work for a NSMutable array? Sincerely, Pierce F -- Pierce Freeman [EMAIL PROTECTED] On 11/26/08 6:40 PM, Nick Zitzmann [EMAIL PROTECTED] wrote: On Nov 26, 2008, at 7:28 PM, Pierce Freeman wrote: Thanks for your reply. I understand how you would do that much, but

Re: Sort Through Commas in Cocoa

2008-11-28 Thread Nick Zitzmann
On Nov 28, 2008, at 5:12 PM, Pierce Freeman wrote: Would this still work for a NSMutable array? If you need a mutable version, then you need to make a mutable copy of the components array. Nick Zitzmann http://www.chronosnet.com/ ___

Sort Through Commas in Cocoa

2008-11-26 Thread Pierce Freeman
Hi everyone. 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 Then it

Re: Sort Through Commas in Cocoa

2008-11-26 Thread Nick Zitzmann
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

Re: Sort Through Commas in Cocoa

2008-11-26 Thread Pierce Freeman
Thanks for your reply. I understand how you would do that much, but how exactly would you do that if Apple, Banana, Grape were stored in a variable? Sent from my iPhone On Nov 26, 2008, at 6:23 PM, Nick Zitzmann [EMAIL PROTECTED] wrote: On Nov 26, 2008, at 7:12 PM, Pierce Freeman

Re: Sort Through Commas in Cocoa

2008-11-26 Thread Nick Zitzmann
On Nov 26, 2008, at 7:28 PM, Pierce Freeman wrote: Thanks for your reply. I understand how you would do that much, but how exactly would you do that if Apple, Banana, Grape were stored in a variable? Same thing as I wrote, except substitute the variable's name for the constant. Nick