Mac OS X Looses Quit & Hide from menu

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

around it.

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.

1 comment
Comment actions Permalink

It happens in ALL Java-based Mac apps, and it's a problem with the Apple
code not jetbrains. I'm on Tiger and the problem is resolved there.
Nothing Jetbrains can do it's been there for a very long time.

R


On 2/28/05 2:57 AM, in article
23044783.1109577483331.JavaMail.itn@is.intellij.net, "Ron Smith"
<no_mail@jetbrains.com> wrote:

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

 (macosx) { }]]>

around it.

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.


0

Please sign in to leave a comment.