On Dec 30, 2019, at 3:19 PM, James Walker via Cocoa-dev 
<cocoa-dev@lists.apple.com> wrote:
> 
> Some Apple utilities such as Activity Monitor can detect when a process has 
> stopped responding to events.  Is there any way to do that using public APIs?

You might be able to do it by sending the process in question an innocuous 
Apple Event with a timeout.  If it doesn't respond within the timeout, it's 
probably stuck.  Of course, these days, that requires user permission.  Also, 
it's a polling strategy, which isn't ideal.

Regards,
Ken

_______________________________________________

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

This email sent to arch...@mail-archive.com

Reply via email to