If I want to refer to the actual window (where I write the code) I would do view.window or self.view.window. For instance:
view.window?.title = "new title"
But if I am in another place, for instance, in the AppDelegate.swift how do I refer to a specific window? For instance, I tried and it does not work:
ViewController.title = "new title"
(macOS and Swift)
(I am quite new with Swift. Sorry if my question is innocent but I cannot find the answer anywhere. I would appreciate any orientation)