Version 1.1, 2012-08-19
Update to use the latest tools and techniques, including a command to listen via GCD.
(Full Revision History)
Mac OS X 10.6
NotifyTool is a simple example of how to use the BSD notify API (man 3 notify). It shows how to post notifications, and how to receive them using a file descriptor, using a Mach port, from a runloop, and using GCD.