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 >

I didn't find that during my searches. Good to know. I'll remove all the Cocoa stuff from the handler. Thanks, Nick.

On 24-Jul-08, at 12:03 AM, Jens Alfke wrote:

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.)


A little convoluted, yes, but thanks, Jens. :-) If I start seeing problems, I'll look into it.

----
Karl Moskowski <[EMAIL PROTECTED]>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>

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

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to