On Tue, Jun 9, 2009 at 4:56 AM, Erg Consultant<erg_consult...@yahoo.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com