Re: how to run NSApplicationMain() in child process?
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