ObjC View and Object Browser
JonB last edited by JonB
Inspired by the UIDebuggingInformationOverlay, which I couldn't get to run on my 32 bit device, this is an overlay that allows exploration of the UIView heirarchy. Add to wrench menu for easy access. Mainly for exploring pythonista internals, but can also be used for views presented from the ui module.
Tapping a view highlights the view in red, making it easy to find where you are. Currently hidden views are greyed out. Expanding a view shows its subviews. For buttons, or other views with gesture recognizers, tapping the link button shows the action and target(prints to console for now) -- useful for determining the objc methods to simulate button taps, etc. (@zrzka, you have probably figured out everything you want to simulate for blackmamba, but if not, this might be helpful)
The info button opens an objc object browser, which shows all of the properties of the instance. Tapping on a property that is an ObjCInstance opens that object in the object browser, and so on.
The object browser is still somewhat experimental, and sometimes crashes for properties that return a different objc object for each call -- since i currently do not store the actual instance, but instead use the address, so if the object is gc'd, tapping on its rowresults in a segfault. I may change that (though it also seems like it could be a bad idea hanging onto strong references to a bunch of objects)
zrzka last edited by
@JonB nice! I was thinking about something similar, but this suits my needs pretty well and I can check it as done. Thanks for this! It surely will speed up Black Mamba development, because I have so many things to add on my list :)