• 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: NSRunLoop's -runMode:beforeDate: not exiting after an NSTask finishes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSRunLoop's -runMode:beforeDate: not exiting after an NSTask finishes


  • Subject: Re: NSRunLoop's -runMode:beforeDate: not exiting after an NSTask finishes
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 5 Aug 2010 13:10:10 -0500

On Aug 5, 2010, at 12:10 PM, Jens Alfke wrote:

> The wait code looks like:
>    while (_busy) {
>        if (![[NSRunLoop currentRunLoop] runMode: NSDefaultRunLoopMode beforeDate: [NSDate distantFuture]])
>            break;
>    }

Since you're waiting on an NSTask to finish, is there a reason you're not using -[NSTask waitUntilExit]?

Regards,
Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSRunLoop's -runMode:beforeDate: not exiting after an NSTask finishes (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Resolution of an NSImage(Rep)?
  • Next by Date: Re: Question about color
  • Previous by thread: Re: NSRunLoop's -runMode:beforeDate: not exiting after an NSTask finishes
  • Next by thread: iOS4: remote / headset events and the remote control display
  • Index(es):
    • Date
    • Thread