I notice that in the latest EAP on Mac OS X, IDEA still looses the Quit and Hide menu items after a while. I have seen this behavior in one other application: MagicDraw. Since I use both of these apps quite a bit, I have been trying to debug this problem. Both IntelliJ and MagicDraw tell me its an Apple bug but I don't think so -- at least not exactly.
It seems to be related to the way these apps use modal dialog windows. I have several other java applications that I run quite a bit and I don't see this behavior with them. Instead of modal dialog windows, however, they use Apple's "window shade" dialogs.
I think is the root of the problem is this: sometimes, for some reason (seems to be related to complexity of the dialog or maybe the activity of the widgets) the modal dialog windows don't completely return the focus to the main window -- at least the menu bar isn't getting the message. Maybe it is as simple as forcing the focus back to the main window when a modal dialog closes. That should be a pretty small block of code somewhere with an
Will this line of testing/debuging help you guys fix this problem? It would be hard for me to take this much further without access to the source.
As a Msc user, I find this bug very annoying because I run a lot of my apps at the same time and it is just habit to hit Cmd-H to hide the current app. Also, hitting Cmd-Q to quit is second nature to a Mac user -- unlike MSWindows, Mac apps traditionally don't quit just because you close their windows.