NSApplicationActivateIgnoringOtherApps is deprecated in Sonoma so it seems intentional.
I understand the theory that forcing yourself active can be abused and bad but I've needed to do it to workaround macOS bugs before. I use NSApplication +activateIgnoringOtherApps: to workaround some bugs in macOS before...but that's also deprecated and I haven't tested but I assume that that method doesn't work either anymore.
Curious why are you calling that inside an autoreleasepool?
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: