Re: Wait until task is finished?
Re: Wait until task is finished?
- Subject: Re: Wait until task is finished?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Wed, 25 Jun 2003 04:53:04 +0200
At 14:48 Uhr -0700 24.06.2003, Nick Zitzmann wrote:
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?
Check out cocoadevcentral, they have two great articles on using
NSTask. There is a notification that you can listen to that tells you
when your task terminates. I'd suggest using that, because using
sleep() or something similar would mean your application freezes with
a spinning pizza of death cursor until the task has finished. That's
not what your users will want.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.