Is there a tool that identifies which NSControl is under the cursor?
You can use a usability tool from Apple to see the structure of most user interfaces; try the Apple developer tool Accessibility Inspector. I believe it will do what you need.

The latest Xcode download may not include this tool as standard. You may need to download an additional package to find this tool.