Have been searching quite a while, maybe someone can direct me to a step by step tutorial on understanding how to use NSToolbar to switch between different view controllers and show them below the toolbar. Possibly resizing the window based on the view height and width.
Not familiar with swift, so any objective-c stuff is much obliged. Thank you.
答案 0 :(得分:0)
您可以NSTabViewController
使用tabStyle
设置为NSTabViewControllerTabStyleToolbar
。
您可以为每个视图控制器的选项卡视图控制器添加NSTabViewItem
;将标签视图项的image
设置为工具栏中所需的图像。
可以通过编程方式或在界面构建器故事板中进行设置。