Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm looking for a tool that could help me understand the layout of a closed source Mac OS applications in term of Cocoa controls. I saw this for in Firefox with the 'inspect' feature (for HTML/CSS); I don't expect it to work for every application because of the variety of programming languages and custom classes.

share|improve this question

closed as off topic by Loïc Wolff, patrix, daviesgeek, bmike Aug 15 '12 at 17:28

Questions on Ask Different are expected to relate to Apple hardware or software within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
I'm sorry but questions relating to programming are off-topic for Ask Different. More information can be found in our FAQs. This type of question belongs on Stack Overflow, which is a site specifically for programming. –  daviesgeek Aug 15 '12 at 5:15
    
Please edit in your end-user rationale for wanting this answered - since development is off topic here, you may not even get an answer, but that at least would make it on topic for this site. –  bmike Aug 15 '12 at 17:28

2 Answers 2

up vote 3 down vote accepted

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.

share|improve this answer
1  
I have found a sample application in XCode named UIElementInspector. Its bundle name is "Accessibility inspector" and it fits my needs. –  Antoine Lecaille Jun 7 '12 at 15:02

I've not come across anything of this sort, howwever the only solution I could think of would be to view the app's package contents and find the NIB files, of which there can be just a few or hundreds, dependant on the app in question.

Using a tool such as NIB Decompiler (although I've never personally used it) to then view the decompiled NIB within InterfaceBuilder/Xcode. The project has not been updated in a few years and may not be up to date with the latest version of Xcode.

share|improve this answer
    
That's interesting. I didn't suspect the NIB files would still be present in the compiled application. –  Antoine Lecaille Jun 7 '12 at 14:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.