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

Re: Stop a NSTask


  • Subject: Re: Stop a NSTask
  • From: email@hidden
  • Date: Mon, 18 Mar 2002 17:34:33 -0800

I am writting an app who process a unix command and display the standard output.

A popular pastime, it would seem.

After press ''go'' i have no choice to wait until process is finished ([my_cmd waitUntilExit]). [my_cmd terminate] is unusable, because i can't press on stop button.

Anybody get the sense that it would be useful to have an AppKit example that does this? :-> And wait, I see the next question on the horizon: the input seems to be getting buffered so the user can't see it until the task has finished; how do I make it come out as it's generated?
As you've probably guessed by now, these issues are covered quite well in the archives. :-> The answer to your question is complex, in the sense that there are many different approaches you can take to solve the problem, so I won't attempt to summerize. The answer to the followup that I anticipate you'll hit is simpler, but I don't remember what it was, and you can search the archives just as well as me. ;->
I have logged a bug at Apple that an example for this is sorely needed.

Ben Haller
Stick Software
_______________________________________________
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.

  • Follow-Ups:
    • Re: Stop a NSTask
      • From: Matt Judy <email@hidden>
  • Prev by Date: Re: a question.
  • Next by Date: Re: Newbie w/ stupid question...
  • Previous by thread: Re: Stop a NSTask
  • Next by thread: Re: Stop a NSTask
  • Index(es):
    • Date
    • Thread