This sample shows how to use the AppKit's NSToolbar and NSToolbarItem classes. These are used to add customizable toolbars to windows. This sample also includes more advanced use of custom views in NSToolbarItems, where you can put a variety of controls, given a little more coding. This sample implements the NSTouchBar API to work in conjunction with the toolbar.
Xcode 8.1, macOS 10.12.1 SDK or later
macOS 10.11 or later
Copyright (C) 2001-2016 Apple Inc. All rights reserved.