Tabs in the iWork Inspector Panel

How do I get the look of the tab buttons as they appear in the iWork '09 Inspector NSPanel ?

The closest I can get is an NSSegmentedControl with a Small Square style. Unfortunately, at least with Snow Leopard this results in a gray selection instead of a blue highlight.

Any ideas Apple made to get a bluish aqua style choice in the various iWork '09 Inspector NSPanel ?

+4
source share
2 answers

The top icon bar is a group of radio stations that is actually an NSMatrix populated by NSButtonCells. You can verify this using the UIElementInspector.app application, which is an example of the code that comes with Xcode.

The selected cell displays its alternate image; other cells display the image.

+2
source

IWork Inspector tab buttons use images for their appearance. Images can be seen if you show the contents of the package in one of the application packages and look in the Resources folder.

To reproduce this, you can use NSSegmentedControl with a custom subclass of NSSegmentedCell that draws images.

+3
source

Source: https://habr.com/ru/post/1389826/


All Articles