Re: [NSTask] -launch return
Re: [NSTask] -launch return
- Subject: Re: [NSTask] -launch return
- From: Michael Ash <email@hidden>
- Date: Tue, 9 Jun 2009 11:18:18 -0400
On Tue, Jun 9, 2009 at 4:56 AM, Erg Consultant<email@hidden> wrote:
> I need to launch and execute a task via NSTask and then immediately get both notification that it launched, and it's launched pid.
>
> I tried the notification mechanism but it requires that I first return from my launch function and let the even loop run in order to receive the notification. If there some other way to get the notification immediately after launch. I tried the following:
I'm pretty sure that -launch is synchronous. When it returns, the
subprocess is already running. Are you seeing behavior to the
contrary?
Mike
_______________________________________________
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