• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
SIGINT (was Re: create NSWindow in Core Foundation tool)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: create NSWindow in Core Foundation tool (From: sinclair44 <email@hidden>)

  • Prev by Date: Re: Object can't alloc itself
  • Next by Date: RE: Threaded data freaking out
  • Previous by thread: Re: create NSWindow in Core Foundation tool
  • Next by thread: Re: Programmatically taking a screenshot
  • Index(es):
    • Date
    • Thread