• 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 terminates when NSApplication exits
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask terminates when NSApplication exits


  • Subject: Re: NSTask terminates when NSApplication exits
  • From: Scott Ribe <email@hidden>
  • Date: Wed, 18 Jan 2012 14:54:38 -0700

On Jan 18, 2012, at 2:27 PM, Ken Thomases wrote:

>> Note that you can't do this with Cocoa/Objective-C (at least Apple says you shouldn't…)
>
> You can fork() and exec() just fine.  What you can't do is fork(), _not_ call exec(), and then do anything other than call POSIX async-cancel-safe APIs.  That includes using high-level frameworks like Cocoa, Core Foundation, or the like.

I think it's recommended that you not launch a GUI app via fork/exec. Calling fork/exec *from* GUI apps is fine all day long.

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice




_______________________________________________

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: 
 >NSTask terminates when NSApplication exits (From: Andrew <email@hidden>)
 >Re: NSTask terminates when NSApplication exits (From: Keary Suska <email@hidden>)
 >Re: NSTask terminates when NSApplication exits (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: NSTask terminates when NSApplication exits
  • Next by Date: Re: Is slowing down bindings updates possible?
  • Previous by thread: Re: NSTask terminates when NSApplication exits
  • Next by thread: Re: NSTask terminates when NSApplication exits
  • Index(es):
    • Date
    • Thread