Re: Wait until task is finished?
Re: Wait until task is finished?
- Subject: Re: Wait until task is finished?
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 24 Jun 2003 14:48:31 -0700
On Monday, June 23, 2003, at 11:22 AM, Chad Armstrong wrote:
Is it possible to start an NSTask, but then have the original program
wait until the task is finished before continuing on to run along the
original path?
Start my task. [myTask launch];
Wait until task is done. ???
Do something else. NSLog(@"Foo");
What about doing something like...
[myTask launch];
while ([myTask isRunning] == YES)
{
sleep(1);
}
?
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://dreamless.home.attbi.com/
"Great spirits have always encountered violent opposition from mediocre
minds." - Albert Einstein
_______________________________________________
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.