Re: Detecting non-responsive app
Re: Detecting non-responsive app
- Subject: Re: Detecting non-responsive app
- From: "Shawn Erickson" <email@hidden>
- Date: Fri, 25 Aug 2006 14:16:42 -0700
On 8/25/06, Drew McCormack <email@hidden> wrote:
Is there any way to determine if the active app is not responding (ie
beachballing) from within a Cocoa app?
If it isn't responding (beach balled) that means the main thread isn't
processing events from the OS.
To detect that you would have to have a second thread watching the
main thread in some fashion (for example a timer on the main thread
periodically sets a time stamp and this second thread periodically
wakes up to see if the time stamp is past some threshold).
The main question is what you plan to do in response to this type of issue?
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden