how to traverse window/view hierarchy of other application in OS X?
I am trying to figure out how to get(read only) entire window/view hierarchy of any application. I get list of all open windows using "CGWindowListCopyWindowInfo" . It also returns window number( "kCGWindowNumber" ). It also shows sharing status of root window by "kCGWindowSharingState = 1;" . Now, I want to check that a particular window/view present in hierarchy of that application. I got kCGWindowNumber which is root window of application. This is now possible via the View Debugging features of Xcode. To use this: Start the target app running as you normally would Launch Xcode, and open a