identifying if an application is not responding

  • Hi All,

    Is there any way to identify if an application is 'not responding' like
    how it shows in 'Force Quit' window when an application is unresponsive.

    I checked methods declared in NSApplicationDelegate, checked class
    reference of NSRunningApplication but I did n't get any useful method or
    property through which I can identify it.

    Please suggest.

    Thanks,
    Devarshi
  • On Jul 8, 2012, at 11:07 AM, Devarshi Kulshreshtha wrote:

    > Is there any way to identify if an application is 'not responding' like
    > how it shows in 'Force Quit' window when an application is unresponsive.

    I don't think there is a Cocoa API for it. The next lower-level API is (I think) Processes.h in HIServices. Below that is the Unix-level stuff, for which the usual advice is to look up and read the source of the 'top' tool in the Darwin open source repository, to see how it does what it does.

    —Jens
previous month july 2012 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today