Skip to content

Programmatically create tabs in NSWindow without using the built-in stuff of NSDocument

License

Notifications You must be signed in to change notification settings

DivineDominion/NSWindow-Tabbing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Programmatic NSWindow Tabbing

Swift 5.3 License Platform

Demonstrating how to implement programmatic creation of tabs in NSWindows without the use of NSDocument.

The underlying difficulty people on StackOverflow etc. are experiencing is that creating your NSWindowController from a storyboard will initialize the window contents, but you need to keep the window controller itself alive to respond to main menu actions. Otherwise, the "+" (add tab) button will appear broken for all but the initial tab.

License

Copyright (c) 2019--2021 Christian Tietze. Distributed under the MIT License.

About

Programmatically create tabs in NSWindow without using the built-in stuff of NSDocument

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages