Sorry for this simple question, but I don't understand how to get the references to my components in the GUI that I built in Main.storyboard. This is how it looks like right now:
func applicationDidFinishLaunching(_ aNotification: Notification) {
let myWindowController = NSStoryboard(name: NSStoryboard.Name(rawValue: "Main"), bundle: nil).instantiateController(withIdentifier: NSStoryboard.SceneIdentifier(rawValue: "abcd")) as! MyMainWindow
myWindowController.showWindow(self)
The View Controller on the top left is my "MyMainWindow" (NSWindowController) with the ID "abcd". Now, I would like to access the components like this checkbox in Tab1 in my code:
In Android i.e. you do something like findViewById(R.id.idOfTheComponent), but I've seen that in Xcode you can Ctrl-Drag the Component into a ViewController. I didn't work though, when I tried to drag the checkbox into my ViewController.swift class. Can someone help?