问题
Is there a visual guide to the controls in Mac OS/X AppKit?
Take, for instance, the following control that appears at different places in XCode UI:
I don't know which AppKit control is that. Any ideas?
回答1:
It looks like a series of NSRadioButton views in an NSMatrix. You can determine the former using Accessibility Inspector, which will tell you that these buttons are of the accessibility class AXRadioButton. You can determine the latter using f-script. (You'll need the new 10.7 injection workflow that isn't in 2.1 yet.)
来源:https://stackoverflow.com/questions/8419660/visual-guide-of-appkit-controls