square/PonyDebugger — pull request #31 by ryanolsonk (2012-11-01 08:22:15+00:00)
Title: Use Magnifying Glass To Inspect Views

This PR implements using the magnifying glass button to enter an "inspect" mode. Tapping on a view in the iOS app while in this mode will select it in the elements pannel. You can also hold and drag your finger to highlight the views, similar to mousing over a webpage while in the inspect mode. When the finger is lifted, the highlighted view is selected in the elements pannel.

There was a bit of refactoring needed to separate out some of the highlighting logic so it could be reused. I also did some renaming for clarity and cleaned up a few unnecessary properties in the DOMDomainController.

The view choosing behaviour seems to work pretty well in terms of selecting the view I intend to pick, at least in the apps I've been using to test. Let me know what you think when you get a chance to try it out!