Running a daemon

2008-06-18 Thread Ivan C Myrvold
running, but at the end of main the daemon quit, even if I have an NSTimer running. So what should I do in main to have the daemon running? In an ordinary Cocoa application the main contains return NSApplicationMain(argc, (const char **) argv);, but as this is a daemon I can't call this. Ivan

Re: Running a daemon

2008-06-18 Thread Graham . Lee
question, but I want the daemon to continue running, but at the end of main the daemon quit, even if I have an NSTimer running. So what should I do in main to have the daemon running? In an ordinary Cocoa application the main contains return NSApplicationMain(argc, (const char **) argv

Re: Running a daemon

2008-06-18 Thread Ivan C Myrvold
starts an NSTimer. This is probably a stupid question, but I want the daemon to continue running, but at the end of main the daemon quit, even if I have an NSTimer running. So what should I do in main to have the daemon running? In an ordinary Cocoa application the main contains return