Re: Cocoa console applications (daemons)
Re: Cocoa console applications (daemons)
- Subject: Re: Cocoa console applications (daemons)
- From: String <email@hidden>
- Date: Wed, 10 Mar 2004 09:55:32 -0600
On Mar 10, 2004, at 7:48 AM, Thierry DELHAISE wrote:
Hi all,
I need to write a daemon under OS/X. I would like to use cocoa
(Objective-C). So I'm dealing with Foundation only not appkit.
In this way I don't have access to NSApplication. So I know I would
like to mimics what NSApplication minus all the GUI initialization
part do.
In XCode:
File->New Project...
select Tool - Foundation Tool
This will give you a project that starts with main.m but does not
reference NSApplicationMain
My daemon is a server for TCP connections.
So I plan to manage multi-thread :
- one thread listening on incomming port.
- others threads to perform tasks : each thread will be specialized.
So I was thinking on using "message base" commnication between threads
(like a GUI Application do).
Does anyone have advices on this, may be sample code ?
The docs under
file:///Developer/Documentation/Cocoa/Conceptual/Notifications/
Notifications.html#//apple_ref/doc/uid/10000043
is a good starting point.
THX in advance.
_______________________________________________
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.
_______________________________________________
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.