Re: Cocoa daemon
Re: Cocoa daemon
- Subject: Re: Cocoa daemon
- From: Kris Kopicki <email@hidden>
- Date: Thu, 13 Nov 2003 14:59:45 +1030
I hadn't thought of that. It works nicely now, thanks for the
suggestion.
Kris
On 13/11/2003, at 1:17 PM, Laurent Daudelin wrote:
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.
--------------------------------------
Kris Kopicki
Network Manager
Walford Anglican School for Girls Inc.
316 Unley Road, Hyde Park
SA 5061 Australia
Web:
http://www.walford.asn.au
Phone: 61-8-82726555
Fax: 61-8-82720313
_______________________________________________
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.