Re: sort, cut and paste
Re: sort, cut and paste
- Subject: Re: sort, cut and paste
- From: Matt Neuburg <email@hidden>
- Date: Thu, 26 Oct 2006 12:35:43 -0700
- Thread-topic: sort, cut and paste
On Thu, 26 Oct 2006 14:49:00 EDT, email@hidden said:
>I need to perform some sorting, cutting and pasting in my Cocoa app on ASCII
>files. No - not the cutting and pasting found under the edit menu, but like
>the commands used at the command line. In "Building Cocoa Applications" from
>O'Reilly, I noticed they created a small app with lex and yacc and then linked
it
>with the Cocoa application with a pipe from within Project Builder/Xcode.
>
>Is it possible to do this as well with the cut, sort, paste and join commands
>used in bash? Or am I going about this the wrong way? Are there similar Cocoa
>API's that do this?
>
>The text files are all fixed width and are comma delimited.
You probably want to use NSTask. It is your gateway to the command line. You
can include a script in Perl or Ruby or whatever you like, in your bundle,
and run it. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden