Re: Cocoa daemon
Re: Cocoa daemon
- Subject: Re: Cocoa daemon
- From: Phillip Hutchings <email@hidden>
- Date: Thu, 13 Nov 2003 17:27:17 +1300
On 13/11/2003, at 1:17 PM, Kris Kopicki wrote:
Hi,
I've written a simple Cocoa app that basically listens for
NSWorkspaceWillLaunchApplicationNotification's. Is there anyway to
make such an application a daemon? NSWorkspace seems dependent on
NSApplication, and to my knowledge the only way to do a cocoa daemon
is using daemon() and NSRunLoop. I'm sure it can probably be done
using carbon, but I'm trying to avoid carbon as I'm not all that
familiar with it.
Cheers,
Kris
You could set the NSUIElement flag in the apps info.plist, this will
prevent the dock from showing the icon.
Just add this at the end of the file:
<key>NSUIElement</key>
<string>1</string>
--
Phillip Hutchings
email@hidden
http://www.sitharus.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >Cocoa daemon (From: Kris Kopicki <email@hidden>) |