Re: Need -[NSTask waitUntilExitOrTimeout:] (was NSTask "Thread Unsafe"...)

2009-09-16 Thread Chris Kane
On Sep 14, 2009, at 6:29 PM, Jerry Krinock wrote: The reason why I asked this is because I need: -[NSTask waitUntilExitOrTimeout:(NSTimeInterval)]. But there is no such method. So, I wrote a wrapper around NSTask that does this. On 2009 Sep 14, at 07:41, Adam R. Maxwell wrote: Ordinar

Re: Need -[NSTask waitUntilExitOrTimeout:] (was NSTask "Thread Unsafe"...)

2009-09-14 Thread Jens Alfke
On Sep 14, 2009, at 6:29 PM, Jerry Krinock wrote: Uh, yeah, it took me a while to track that one down. Apparently, running a run loop that is already running is not a good idea. That's not generally true; there's definitely code that does this. I've found that generally it helps to run th

Need -[NSTask waitUntilExitOrTimeout:] (was NSTask "Thread Unsafe"...)

2009-09-14 Thread Jerry Krinock
The reason why I asked this is because I need: -[NSTask waitUntilExitOrTimeout:(NSTimeInterval)]. But there is no such method. So, I wrote a wrapper around NSTask that does this. On 2009 Sep 14, at 07:41, Adam R. Maxwell wrote: Ordinarily, I'd guess that it's supposed to mean that you c