Re: How to exit a thread help...

2008-10-27 Thread Tom Jones
>> I'm writing a Foundation tool and I need to run a NSTask in a >> separate thread. > An NSTask is a different thing from a thread. Since NSTask provides > asynchronous notification of its death (and NSFileHandle provides > asynchronous methods for dealing with I/O), there should be no need

Re: How to exit a thread help...

2008-10-25 Thread Ken Thomases
On Oct 25, 2008, at 1:00 PM, Tom Jones wrote: I'm writing a Foundation tool and I need to run a NSTask in a separate thread. An NSTask is a different thing from a thread. Since NSTask provides asynchronous notification of its death (and NSFileHandle provides asynchronous methods for deal

How to exit a thread help...

2008-10-25 Thread Tom Jones
Hello, I'm writing a Foundation tool and I need to run a NSTask in a separate thread. I have it working but when the task completes the thread is still running. I tried issuing a [NSThread exit] but that did nothing. What am I missing? Thanks, tom This my main code #import #import "Thre