Command-Period Key Equivalent - Bad Idea?
Command-Period Key Equivalent - Bad Idea?
- Subject: Command-Period Key Equivalent - Bad Idea?
- From: Andreas Mayer <email@hidden>
- Date: Thu, 19 Sep 2002 04:48:58 +0200
Hi all.
I just found the cause of a strange behaviour in my app.
Whenever a sheet was up (even the toolbar configuration sheet) and I
pressed command-period my application would quit.
It didn't crash. No crash log or anything.
But it didn't quit normally either. (It shouldn't from inside that
sheet anyway.)
The only diagnostic output were some lines in the console about
autoreleased objects without an autorelease pool.
After searching through several methods related with sheets and event
handling I realized that I had a menu item with command-period as key
equivalent (and stop: as action). As soon as I removed that key
equivalent the error was gone.
For now I replaced it with alt-command-period and changed the action
method name to something else (stopScript:).
But I think that's not quite optimal. Now I have two different key
equivalents for essentially the same action - to cancel something. An
other option would be to omit the stop menu item. But I want to have
some visual clue that stop is actually available.
Besides - I do not really understand what the problem was in the first
place ...
Any ideas anyone?
bye. Andreas.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.