I'm working on a small Swift menu bar application for 10.14. I'm not using the storyboard feature; I'm just loading a couple informational windows through menu commands under my menu bar icon.
So when a window is loaded, if I do this:
// create changelog window object
let logWin = NSWindowController(windowNibName: "Changelog")
logWin.loadWindow()
NSApp.activate(ignoringOtherApps: true)
I get new instances of the window forever. If I instantiate my window in my class so it can be reused, once it's closed, it never displays again. I've read through posts on both Apple's developer forums as well as on SO (along with reading Apple's documentation), and I'm still unsure how to address this.