Closed AlexPerathoner closed 1 year ago
NSApplication.shared.setActivationPolicy(.accessory)
applicationDidFinishLaunching
LSUIElement
NSApplication.shared.setActivationPolicy(.regular)
NSApp.activate(ignoringOtherApps: true)
NSApplication.shared.setActivationPolicy(.accessory)
inapplicationDidFinishLaunching
LSUIElement
from info.plistNSApplication.shared.setActivationPolicy(.regular)
afterNSApp.activate(ignoringOtherApps: true)
(e.g when showing settings window)