Re: Stop a NSTask
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.