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:
This should show you a sort of "exploded" view of the app's views as well as a tree of their relationships in Xcode's left pane.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With