I create a window and set level to NSStatusWindowLevel. In Dock Preferences, I enable "Minimize windows into application". After I minimize the window into dock icon, the window disappears when I select it (to restore) from window menu.
My OS X version is 10.11. When I try on OS X 10.6, it works fine.
Is this a bug of Cocoa? How can I overcome this issue?
I overcome this issue by this trick:
Before miniaturize, set window level to NSNormalWindowLevel
Observe NSWindowDidDeminiaturize notification
Restore window level to NSStatusWindowLevel in notification handler.
Related
How can I configure PhpStorm to use the "non-native" fullscreen mode? I'd like PhpStorm to be fullscreen (without the macOS top menu bar, etc), in the same window (without creating a new window that I have to scroll between).
The terminal for macOS iTerm2 have this setting. You can choose to remove the tick from "Native full screen windows". When this tick is removed, the fullscreen mode will simply take out all space in the window, without creating a new separate window.
Native fullscreen example
Notice how a new separate "window" is created called "PhpStorm"
Non-native fullscreen example
Notice how theres still one window called "Desktop". The iTerm window fills out the whole screen though.
the only way you can do it at the moment is by adjusting the dock in mac to hide menu automatically and then spread the editor to wider and higher setting
click right on the dock in mac and goto settings and hide menu works for me
i am suffering from same issue lol after i saw iterm2 :P
When the window is full screen, I don't want the dock to show up. A lot of times the application I am working with in full screen has some buttons and handles at the bottom of the page, and as soon as I move the mouse down to click on a button dock pops up and I click mistakenly on an item in dock. I don't remember I had this issue in previous versions of OSX but I am not too sure. I am currently on OSX El Capitan.
You can set long interval to pop the dock up. Run this code in your terminal to pop the dock up in 15 seconds.
defaults write com.apple.Dock autohide-delay -float 15 && killall Dock
It works for me.
I'd like to show full screen QDialog on Mac OSX.
I tried to do that:
QDialog* d = new QDialog(nullptr, Qt::Window);
d->showFullScreen();
d->activateWindow();
It works, but this dialog creates new OSX screen:
I tried to do that:
QDialog* d = new QDialog(nullptr, Qt::SplashScreen | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
d->setWindowState(Qt::WindowFullScreen);
d-show();
It doesn't create new screen, but QDialog shows under OSX Dock and OSX menu:
How to solve my problem?
What you are seeing is the normal behaviour of OS X. If you want a full screen application, without the dock and menu bar, then having a separate Desktop Screen (space) is the accepted method.
An alternative would be to maximise the size of your dialog and set the dock to hide, but you'd still be left with the menu at the top and changing the user's preference for how the dock is displayed is not a good user experience.
You can enter full-screen mode in Rubymine by navigating to MENU > VIEW > ENTER FULL SCREEN. Once in full-screen mode, moving your mouse to the top of the screen triggers the menu bar to dropdown, where you can once again navigate to MENU > VIEW > (now changed to) EXIT FULL SCREEN.
Does anyone know of a shortcut for this on Mac? I think there is one for OS X - not sure what it is off-hand, but can't find anyone anywhere for windows.
CTRL-COMMAND-F
OS X KeyMap cheatsheet here: http://www.jetbrains.com/ruby/docs/RubyMine_ReferenceCard_Mac.pdf
I was surprised this doesn't happen automatically, but I would like my applications window to be in focus as I click its dock icon, when in minimized mode.
Just to clarify, when I minimize the app, the window goes to dock, but when I click the its corresponding Dock Icon, the window don't come in focus.
Is there anything I am missing?
I am using Qt 4.5.3 on Mac OS X 10.5, 10.6
Thanks for help.
Rahul
First answer: That's the expected behavior of a Mac app. Try Safari for example. An app can be active without showing any window. In that case, only the menu bar at the top shows that the active app is changed. So, unless absolutely necessary, you shouldn't bring the minimized window back unless the user explicitly does so. That's the Mac way!
Second answer: I understand that there are cases where you want to bring the minimized window up. In Cocoa, the application delegate method -applicationDidBicomeActive is called when the application gets the focus, and there you can bring the window up yourself. I'm sure Qt also has a similar event/callback/signal or whatever, but I don't know any Qt ... :p Sorry I can't be of any help.