• 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: how to run NSApplicationMain() in child process?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to run NSApplicationMain() in child process?


  • Subject: Re: how to run NSApplicationMain() in child process?
  • From: "Stephen J. Butler" <email@hidden>
  • Date: Fri, 10 May 2013 02:00:43 -0500

On Fri, May 10, 2013 at 1:56 AM, Ondrej Holecek <email@hidden>wrote:

> thanks for the hint, I have to check this first. However at first
> glance it seems I have to create 2 applications. Daemon and cmd-line
> app. My idea is to have just one app which behaves as a "daemon" in
> case the deamon doesn't run yet and/or as a cmd-line tool if the
> daemon runs. But maybe it is not the way.
>

Make launchd run the same executable, but with a "--daemon" option. That's
got to be as easy, or easier, than detecting an already running one and
forking + daemonizing.
_______________________________________________

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: how to run NSApplicationMain() in child process?
      • From: Robert Vojta <email@hidden>
References: 
 >how to run NSApplicationMain() in child process? (From: Ondrej Holecek <email@hidden>)
 >Re: how to run NSApplicationMain() in child process? (From: "Stephen J. Butler" <email@hidden>)
 >Re: how to run NSApplicationMain() in child process? (From: Ondrej Holecek <email@hidden>)

  • Prev by Date: Re: how to run NSApplicationMain() in child process?
  • Next by Date: Re: how to run NSApplicationMain() in child process?
  • Previous by thread: Re: how to run NSApplicationMain() in child process?
  • Next by thread: Re: how to run NSApplicationMain() in child process?
  • Index(es):
    • Date
    • Thread