Focus problems

ReinierKops.1905ReinierKops.1905 NLUniversity ✭✭

When my macOS app is running, and triggered via a custom-url scheme, and the browser is opened fullscreen, my app doesn't get the focus.
When the app not running, and triggered, the app will get it's focus.

How can i achieve that my running app gets it focus?

Best Answer

  • ReinierKops.1905ReinierKops.1905 NL ✭✭
    Accepted Answer

    'public override void DidBecomeActive(NSNotification notification)
    {
    MainWindow.OrderFrontRegardless();
    }'

Answers

Sign In or Register to comment.