Re: CocoaEcho
Re: CocoaEcho
- Subject: Re: CocoaEcho
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 14 Jun 2010 13:09:37 -0600
On Jun 14, 2010, at 12:22 AM, B. Mitchell Loebel wrote:
> Hello list ... three questions:
>
> 1. CocoaEcho has two main() functions. How come X-Code doesn't complain?
1. It's "Xcode", not "X-Code".
2. Xcode doesn't "complain"; the compilers raise warnings and errors, and Xcode reports them.
3. If you looked at the target assignments, you'll notice that there are two targets, with one main() function built into each target.
> 2. How can I create a daemon to run in the background which will persist across machine boots?
Use launchd's launch daemons feature. There's a GUI out there that will create the property list files for you, called Lingon. Search around for it; it should be available for download on sites like VersionTracker. You can also do this manually by following the instructions in the launchd.plist man page.
> 3. How can I kill the daemon if I choose to do that?
You can do that with launchctl once you've implemented your launch daemon property list file. Or use Activity Monitor, or use the ps & kill command line tools.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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: | |
| >CocoaEcho (From: "B. Mitchell Loebel" <email@hidden>) |