简体   繁体   中英

How to force an NSWindow to be opened on the Desktop only?

I have a status bar app that has some windows but if i'm on fullscreen in an app the window is opened in front of it. How can i force the window to be opened on the Desktop and move the user to the desktop?
I seek something that happens in Twitter.app: when you try to make a new tweet using the status bar button "New Tweet..." and the new tweet window is opened on the Desktop.

Try NSApplicationPresentationOptions . All You Have to do is set currentSystemPresentationOptions

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM