Re: Controls & Key Equivalents

Kyle Sluder <[email protected]> Mon, 22 Nov 2010 16:16:46 -0800
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Mon, Nov 22, 2010 at 2:56 PM, Eric Gorr <[email protected]> wrote:

> In Cocoa, one is allowed to assign key equivalent to controls like Push Buttons. The default implementation of a Push Button does not provide any way to display to the user what that key equivalent is.
>
> If you have seen any application which does display what that key-equivalent is, I would be interested in learning what they did. One person mentioned elsewhere that they seemed to recall Mac OS used to show key equivalents of the Don't Save, Cancel, Save buttons when the user held down the command key. I too seem to have a vague memory of that, but, Apple seems to have dropped that particular UI design a long time ago.
>
> If you still wanted further context for the original question, consider a push button on a modal dialog.

WHAT does your button DO? That's the crux of the question. As
Christiaan explained, buttons like OK and Cancel need no caption for
their key equivalents.

But the whole point is really moot. Just don't assign key shortcuts to
nonstandard buttons. They're a holdout from NEXTSTEP.

--Kyle Sluder