SIGINT (was Re: create NSWindow in Core Foundation tool)
SIGINT (was Re: create NSWindow in Core Foundation tool)
- Subject: SIGINT (was Re: create NSWindow in Core Foundation tool)
- From: Frank Fenn <email@hidden>
- Date: Sun, 9 Mar 2003 20:18:02 -0700
Okay, I'm now doing the following:
NSApp = [NSApplication sharedApplication];
then I install a signal handler for SIGHUP and SIGINT
finally I call [NSApp run];
so far so good. But SIGINT now never reaches my signal handler. SIGHUP
works. Before using NSApp and with the
hand made runloop [[NSRunLoop currentRunLoop]
runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]];
SIGINT was just caught fine and I could issue CFRunLoopStop([[NSRunLoop
currentRunLoop] getCFRunLoop]);
How can I now catch a ^C and terminate the runloop? I need to delete a
/var/run/xxx.pid file.
--
regards
Frank Fenn - Bright Light Software
_______________________________________________
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.