• 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
Re: Daemon Advice?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Daemon Advice?


  • Subject: Re: Daemon Advice?
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 23 Jul 2008 21:03:23 -0700


On 23 Jul '08, at 2:20 PM, Nick Zitzmann wrote:

Calling ObjC methods in a signal handler is not a good idea: <http://lists.apple.com/archives/Cocoa-dev/2001/Dec/msg00159.html >

You can work around this by using a kqueue to receive the signal, creating a file descriptor to listen on the kqueue, and then using an NSSocket to get a callback on the runloop after the kqueue fires. (Sorry that sounds convoluted. I've implemented this in the past, but the code is still inside Apple's firewall, where I don't have access to it anymore, so I can't look up the details.)


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Daemon Advice?
      • From: Karl Moskowski <email@hidden>
References: 
 >Daemon Advice? (From: Karl Moskowski <email@hidden>)
 >Re: Daemon Advice? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: NSTextView displaying a square instead of carriage return
  • Next by Date: how to correctly set knob/thumb proportion and scroller orientation in NSScroller
  • Previous by thread: Re: Daemon Advice?
  • Next by thread: Re: Daemon Advice?
  • Index(es):
    • Date
    • Thread