• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Wait until task is finished?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Wait until task is finished? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Safari SDK
  • Next by Date: Re: Xcode... - rendezvous + cluster
  • Previous by thread: Re: Wait until task is finished?
  • Next by thread: Re: Wait until task is finished?
  • Index(es):
    • Date
    • Thread