FROM : Matt Neuburg
DATE : Fri Apr 29 17:56:33 2005
On Thu, 28 Apr 2005 23:57:23 -0400, Luc Vandal <<email_removed>> said:
>do I need to implement keyDown in the window controller or I have to
>derive my own NSStepper?
>
>What I don't understand is that I've created an empty project with a
>NSStepper control. I added an action connected to that control. The
>control does respond when I press the up or down key on the keyboard.
>How weird is that?
>
>Also, in the other project (the one where NSStepper is causing
>problems) if I press the down key on the keyboard and then press the
>space bar, the control will respond!
>
>I don't get it!
Clearly not. Step One: in System Preferences > Keyboard & Mouse > Keyboard
Shortcuts, uncheck "Turn on full keyboard access." You clearly don't
understand what this is, and the fact that it is turned on is confusing you.
Once you've done this, you will no longer be able to give the stepper the
focus, and the system's keyboard shortcuts for manipulating the stepper will
no longer interfere. You will thus be left interacting only with Cocoa
itself, and your experiments will make sense to you. m.
--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
DATE : Fri Apr 29 17:56:33 2005
On Thu, 28 Apr 2005 23:57:23 -0400, Luc Vandal <<email_removed>> said:
>do I need to implement keyDown in the window controller or I have to
>derive my own NSStepper?
>
>What I don't understand is that I've created an empty project with a
>NSStepper control. I added an action connected to that control. The
>control does respond when I press the up or down key on the keyboard.
>How weird is that?
>
>Also, in the other project (the one where NSStepper is causing
>problems) if I press the down key on the keyboard and then press the
>space bar, the control will respond!
>
>I don't get it!
Clearly not. Step One: in System Preferences > Keyboard & Mouse > Keyboard
Shortcuts, uncheck "Turn on full keyboard access." You clearly don't
understand what this is, and the fact that it is turned on is confusing you.
Once you've done this, you will no longer be able to give the stepper the
focus, and the system's keyboard shortcuts for manipulating the stepper will
no longer interfere. You will thus be left interacting only with Cocoa
itself, and your experiments will make sense to you. m.
--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
| Related mails | Author | Date |
|---|---|---|
| Luc Vandal | Apr 28, 19:32 | |
| Matt Neuburg | Apr 29, 05:42 | |
| Luc Vandal | Apr 29, 05:57 | |
| Matt Neuburg | Apr 29, 17:56 |






Cocoa mail archive

