• 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: make a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make a list


  • Subject: Re: make a list
  • From: Andy Gerweck <email@hidden>
  • Date: Fri, 5 Dec 2003 10:45:59 -0800

Perl is the best language choice for this kind of thing. It's available on your Mac and documented (very intelligibly) at http://www.perldoc.com/.

Otherwise, there's no need for Objective-C/Cocoa or C++: plain C can do this very effectively once you learn about the evils of strings in C. Pick up "The C Programming Language" by Kernighan and Ritchie or any of the "C for Dummies" type books.

It's not clear how you want to use this data. Learning C will help you with any programming and it's not too hard. Perl is great if you're interested in easy and powerful text processing, is also not too hard. C's an excellent choice for quick, portable code; Perl's a great swiss army knife of a scripting language. I'd stay away from C++ or Objective-C until you know C.

--Andy Gerweck

On Dec 5, 2003, at 9:24 AM, mmalcolm crawford wrote:

On Dec 5, 2003, at 8:56 AM, Sascha Kuehn wrote:

i need to make a list of lists from a tab and return delimited string
like : "data1 [tab] data2 [tab] data3 [return] data4 [tab] data5 [tab]
data6" [tab] and [return] are the delimiters!!


If the data is completely regular, use NSString's componentsSeparatedByString. Otherwise scanners may be useful:
<http://developer.apple.com/documentation/Cocoa/Conceptual/Strings/ Concepts/Scanners.html>

mmalc
_______________________________________________
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.
_______________________________________________
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.

References: 
 >make a list (From: Sascha Kuehn <email@hidden>)
 >Re: make a list (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: NSTextField has cursor in it?
  • Next by Date: Newlines in a NSTextField...still struggling
  • Previous by thread: Re: make a list
  • Next by thread: Re: windows title bar at left
  • Index(es):
    • Date
    • Thread