Cocoa Interface Builder's 'Attributes Inspector' like window

后端 未结 3 448
天涯浪人
天涯浪人 2021-01-14 07:59

I\'m making a Cocoa application, and I would like a panel like the \'Attributes Inspector\' in Interface Builder. So with big tabs on the top and collapsable/expandable grou

相关标签:
3条回答
  • 2021-01-14 08:32

    I've written some custom classes to do this- it ended up being less work than I expected. I broke it down into two separate components which can be used independently- the first handles the icons at the top and performs the view switching and the second handles the expandable panes: ViewSelectorBar InspectorPanel

    My code is available at github and is under the BSD 2-clause license.

    0 讨论(0)
  • 2021-01-14 08:37

    InspectorKit is FOSS on github.

    0 讨论(0)
  • 2021-01-14 08:52

    There's no built-in Cocoa controls to do this. You're going to have to write some custom views which replicate the functionality.

    There some good advice for creating custom controls in the answers to this question: Looking for info on custom drawing of interface components (Cocoa)

    If you need additional help, I recommend you ask smaller, more specific questions explaining what you've tried and what hasn't worked.

    0 讨论(0)
提交回复
热议问题