开发者

Cocoa status bar (UIElement) app settings window

开发者 https://www.devze.com 2023-01-30 10:19 出处:网络
I got it all working, but when i click on the settings, the settings windo开发者_高级运维w (in nswindowcontroller) opens up on the back of other apps running on my mac. I want it in the front so user

I got it all working, but when i click on the settings, the settings windo开发者_高级运维w (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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消