Re: Cocoa daemon
Re: Cocoa daemon
- Subject: Re: Cocoa daemon
- From: Laurent Daudelin <email@hidden>
- Date: Wed, 12 Nov 2003 21:47:28 -0500
on 12/11/03 19:17, Kris Kopicki at email@hidden 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.
I've never wrote a daemon in Cocoa (or otherwise), but since NSWorkspace is
part on AppKit, it might be a little hard to write a daemon using it. Did
you try creating a tool project and then add the AppKit framework?
-Laurent.
--
============================================================================
Laurent Daudelin AIM/iChat: LaurentDaudelin <
http://nemesys.dyndns.org>
Logiciels Nemesys Software
mailto:email@hidden
GIGO /gi:'goh/ [acronym]: 1. `Garbage In, Garbage Out' -- usually said in
response to lusers who complain that a program didn't "do the right thing"
when given imperfect input or otherwise mistreated in some way. Also
commonly used to describe failures in human decision making due to faulty,
incomplete, or imprecise data. 2. `Garbage In, Gospel Out': this more recent
expansion is a sardonic comment on the tendency human beings have to put
excessive trust in `computerized' data.
_______________________________________________
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>) |