• 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: [NSTask] -launch return
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSTask] -launch return


  • Subject: Re: [NSTask] -launch return
  • From: Erg Consultant <email@hidden>
  • Date: Tue, 9 Jun 2009 15:55:35 -0700 (PDT)

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 <email@hidden>
To: cocoa-dev <email@hidden>
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<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




_______________________________________________

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

  • Follow-Ups:
    • Re: [NSTask] -launch return
      • From: Michael Ash <email@hidden>
References: 
 >[NSTask] -launch return (From: Erg Consultant <email@hidden>)
 >Re: [NSTask] -launch return (From: Michael Ash <email@hidden>)

  • Prev by Date: Re: Instruments and over released objects
  • Next by Date: Re: self Changes on Open Panel
  • Previous by thread: Re: [NSTask] -launch return
  • Next by thread: Re: [NSTask] -launch return
  • Index(es):
    • Date
    • Thread