Learn-iOS-Swift-by-Examples/ToolbarSample
Liu Lantao b05769f6be ToolbarSample: Version 3.0, 2016-10-27
Update to Swift, uses Storyboard, and now includes NSTouchBar.

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.
2016-12-24 12:02:25 +08:00
..
ToolbarSample ToolbarSample: Version 3.0, 2016-10-27 2016-12-24 12:02:25 +08:00
ToolbarSample.xcodeproj ToolbarSample: Version 3.0, 2016-10-27 2016-12-24 12:02:25 +08:00
LICENSE.txt ToolbarSample: Version 3.0, 2016-10-27 2016-12-24 12:02:25 +08:00
ReadMe.md ToolbarSample: Version 3.0, 2016-10-27 2016-12-24 12:02:25 +08:00

ReadMe.md

ToolbarSample: Using NSToolbar to construct a window toolbar

Description

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.

Requirements

Build

Xcode 8.1, macOS 10.12.1 SDK or later

Runtime

macOS 10.11 or later

Copyright (C) 2001-2016 Apple Inc. All rights reserved.