• 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: NSTask interaction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask interaction


  • Subject: Re: NSTask interaction
  • From: Kristofer Younger <email@hidden>
  • Date: Mon, 19 Nov 2001 08:18:24 -0500

I found some stuff on CocoaDevCentral http://www.cocoadevcentral.com/ on how to do this (wrapping a unix command in Cocoa), but found that their solution caused race conditions (I think that's what I experienced) in the Appkit under certain conditions - so I added, in addition to NSTask and NSPipe stuff, some stuff with Distributed Objects to cause the updating of the large amounts of text I get back from the subtask to flow into a TextView without interruption. DO seems to handle it well.
See http://82north.com/volumes/Ditto.dmg.gz for the app and the source to it. (The app does a simple 'ditto' of one folder into another (it's the brainless (and inefficient) way I backup my home directory.))

-Kristofer


  • Follow-Ups:
    • Re: NSTask interaction
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Question on NSScrollView /Scrolling through big Datasets
  • Next by Date: Launching Application with arguments
  • Previous by thread: Re: NSTask interaction
  • Next by thread: Re: NSTask interaction
  • Index(es):
    • Date
    • Thread