Search code examples
macoscocoawindowstatusbaruielement

Cocoa status bar (UIElement) app settings window


I got it all working, but when i click on the settings, the settings window (in nswindowcontroller) opens up on the back of other apps running on my mac. I want it in the front so user can see it when he clicks it.

Thank you all!


Solution

  • seems like i got it working finally! :)

    [[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
    

    when the user clicks the settings menu item, i execute this code :) am writing this just in case if someone will look for a similar thing.