I forgot to mention that the problem case is exceptional: the problem I have is only in the case of an Intel version of the app trying to launch a PPC-only child the first time after reboot: -launch returns immediately, and isRunning returns YES, but there is like a 3 second delay between the time Rosetta begins to run and my binary is actually launched - it appears that isRunning returns YES as soon as Rosetta is started - not when my PPC child is actually started.
In the Intel-launching-Intel or PPC-launching-PPC case, there is never any problem whatsoever. Maybe I need to add some code to complete *after* Rosetta has *finished* launching. Erg ________________________________ From: Michael Ash <michael....@gmail.com> To: cocoa-dev <cocoa-dev@lists.apple.com> Sent: Tuesday, June 9, 2009 8:18:18 AM Subject: Re: [NSTask] -launch return 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/erg_consultant%40yahoo.com This email sent to erg_consult...@yahoo.com _______________________________________________ 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