| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Jason,--
I had exactly the same issue as you and was told not to use
any Cocoa calls in a signal handler. My solution was to create
an NSPipe, do a readInBackgroundAndNotify on the read end,
and then from the signal handler just do a write(2) directly
on the write-end file descriptor.
This works well, and I later saw on the Darwin developers
mailing list somebody recommending this writing-to-a-pipe
from a signal handler trick, so I guess it is pretty safe.
I.
| References: | |
| >Re: How to get scripting to work without NSApplication (From: Ingvar Nedrebo <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.