Closed antranapp closed 4 months ago
I believe you can already do this:
let settingsWindowController = SettingsWindowController(
panes: [
GeneralSettingsViewController(),
AdvancedSettingsViewController()
],
style: .segmentedControl
)
settingsWindowController.window?.delegate = …
Oh yes, that makes sense.
I need to call
NSApp.setActivationPolicy()
whenever the settings window is shown and hidden. Adding the delegate property so that I can inject my own delegate when initialising SettingsWindowController