Re: Controls & Key Equivalents

Eric Gorr <[email protected]> Mon, 22 Nov 2010 19:40:15 -0500
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Nov 22, 2010, at 7:31 PM, Kyle Sluder wrote:

> On Mon, Nov 22, 2010 at 4:24 PM, Eric Gorr <[email protected]> wrote:
>>> WHAT does your button DO?
>> 
>> I don't always know. But, perhaps, bring up another dialog.
> 
> Then nobody can answer the question.

One possible answer is to place the key-equivalent in a tooltip for the button. 

Another possible answer is do what apparent Mac OS did way back when which was to show the key-equivalent when the user pressed the command key.

If you have seen any application which does display what that key-equivalent is for NSButtons, I would be interested in learning what they did.

>> It may not always be a Push Button, but a check box that would enable or disable functionality elsewhere in the application.
> 
> Then this entire exercise is futile because unless your entire app
> only exists in one window the button will never get the keypress
> event.

It will if it is on a dialog which the user visits.