I have a Utility app that does not have a Dock icon and runs in the menu bar. On macOS Sonoma (14 DB 1) you cannot use anymore the workaround that we used on previous versions of the macOS, as you get a warning that you should use SettingsLink
.
NSApp.sendAction(Selector(("showSettingsWindow:")), to: nil, from: nil)
But the issue is, that before I usually were calling as well NSApp.activate(ignoringOtherApps: true)
to activate the app. As clicking on the MenuBar app icon does not do that.
The SettingsLink
only opens the Settings Scene, but does not actually activates the app. I could not find a workaround how to do so. As I cannot inject my code in SettingsLink
call.
Any ideas how I can activate my app when SettingsLink
is called?