user142019
user142019

Reputation:

Cocoa Interface Builder's 'Attributes Inspector' like window

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 groups. Does anyone know how I can do this?

This is an image of the Attributes Inspector:

Attributes Inspector http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeQuickTour/Art/hello_win_attributes.jpg

So I actually want to make a window like the one shown in the image above.

Upvotes: 3

Views: 1708

Answers (3)

sbooth
sbooth

Reputation: 16966

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.

Upvotes: 1

Dave DeLong
Dave DeLong

Reputation: 243146

InspectorKit is FOSS on github.

Upvotes: 2

kperryua
kperryua

Reputation: 10534

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.

Upvotes: 2

Related Questions