In OS X 10.10+ how can I create the "fat titlebar" kind of window that has a toolbar integrated with other gadgets in the window's title bar, like in the new Safari and Calendar?

- Create a standard toolbar
When the window loads set:
window.titleVisibility = NSWindowTitleHidden; // or .Hidden in Swift
In your Window Controller:
Put the following into your windowDidLoad override function.
self.window!.titleVisibility = NSWindowTitleVisibility.Hidden
来源:https://stackoverflow.com/questions/24023000/how-can-i-create-yosemite-style-unified-toolbar-in-interface-builder