• 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, cut and paste
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sort, cut and paste


  • Subject: Re: sort, cut and paste
  • From: Andrew Farmer <email@hidden>
  • Date: Thu, 26 Oct 2006 21:37:31 -0700

On 26 Oct 06, at 11:49, email@hidden wrote:
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?

You _can_ call out to cut/sort/paste/join, but it's probably going to be much easier (and faster!) to do the tasks yourself. Most of those tasks are pretty to implement using NSString and NSArray.
_______________________________________________
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
References: 
 >sort, cut and paste (From: email@hidden)

  • Prev by Date: Re: Processing Smart Folders
  • Next by Date: Disconnecting my NSDocument from its Bindings
  • Previous by thread: sort, cut and paste
  • Next by thread: Re: sort, cut and paste
  • Index(es):
    • Date
    • Thread