In BaseX 7.2 just now, I pressed Command-Q to quit the program. My query had changed, so the program put up a dialog box to ask "Save changes to file?" with buttons for Yes, No, and Cancel.
As I looked at the dialog box, I noticed that the query in question was not the one I had thought it was (for a project I was closing down) but a different one (the project I was intending to focus on next). So I didn't want to quit the program after all. I clicked on Cancel, expecting that my request to shut BaseX down would be canceled and BaseX would continue running with my query file still in place. But in fact BaseX exited anyway. As far as I can tell, it didn't save the query (no great loss, in this case, I think), so that Cancel effectively had the same effect as No.
It's been a long time since I read anything about standard user interface idioms, so I don't want to go so far as to say that this is a bug. But it did surprise me, and so I suggest that it might be helpful to make the Cancel button in this dialog box cancel the quit action. Consider it a request for enhancement.
Thanks!
Michael
Dear Michael,
you stumbled upon one of the issues that are specific to Mac OSX (the Cancel button works on all Windows and Linux distributions we are aware of). It's a pity that Apple's Java support is deficient in many aspects, which is why we already have introduced some Mac-specific wrapper code to make the graphical user interface more compliant (for those who are interested, please see [1]).
As I'm one of the few in our group who hasn't switched to Mac.. I'll have to pass this on to the others.. Anyone interested in having a look at this issue?
Christian
[1] https://github.com/BaseXdb/basex/blob/master/src/main/java/org/basex/gui/GUI... ___________________________
On Tue, Apr 24, 2012 at 9:52 PM, C. M. Sperberg-McQueen cmsmcq@blackmesatech.com wrote:
In BaseX 7.2 just now, I pressed Command-Q to quit the program. My query had changed, so the program put up a dialog box to ask "Save changes to file?" with buttons for Yes, No, and Cancel.
As I looked at the dialog box, I noticed that the query in question was not the one I had thought it was (for a project I was closing down) but a different one (the project I was intending to focus on next). So I didn't want to quit the program after all. I clicked on Cancel, expecting that my request to shut BaseX down would be canceled and BaseX would continue running with my query file still in place. But in fact BaseX exited anyway. As far as I can tell, it didn't save the query (no great loss, in this case, I think), so that Cancel effectively had the same effect as No.
It's been a long time since I read anything about standard user interface idioms, so I don't want to go so far as to say that this is a bug. But it did surprise me, and so I suggest that it might be helpful to make the Cancel button in this dialog box cancel the quit action. Consider it a request for enhancement.
Thanks!
Michael
--
- C. M. Sperberg-McQueen, Black Mesa Technologies LLC
- http://www.blackmesatech.com
- http://cmsmcq.com/mib
- http://balisage.net
basex-talk@mailman.uni-konstanz.de