discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calculator.app: entering numbers from keyboard?


From: Nicola Pero
Subject: Re: Calculator.app: entering numbers from keyboard?
Date: Sun, 19 Aug 2007 11:38:47 +0100


I guess this question applies to EdenMath and Stepulator as well, but is there any way to receive input from the keyboard in Calculator.app? Otherwise, it's pretty tiresome to mouse around to enter every number and operation.


You'd need to implement/override the keyDown: method

Calculator.app used to use key equivalents for that, as in

[button setKeyEquivalent: @"1"];

I know this used to work XXX years ago: pressing '1' would be equivalent to pushing the '1' button :-)

... so if it doesn't work any longer, maybe key equivalents no longer work in the gui, or something has changed in the API and the Calculator.app code needs updating (or the way Calculator.app is using key equivalents
is wrong) ?

Thanks





reply via email to

[Prev in Thread] Current Thread [Next in Thread]