JNI/ObjectiveC Macintosh process monitoring code.