Re: Hot to move focus to a button?

2010-03-07 Thread Kyle Sluder
On Sun, Mar 7, 2010 at 11:44 AM, Matt Neuburg wrote: > On Sat, 6 Mar 2010 16:25:57 -0800, Kyle Sluder said: >>Buttons don't accept keyboard focus > > They do on my machine. It all depends on how the user has set up Full > Keyboard Access in the Keyboard prefs. m. Okay, but that is not the defaul

Re: Hot to move focus to a button?

2010-03-07 Thread Matt Neuburg
On Sat, 6 Mar 2010 16:25:57 -0800, Kyle Sluder said: >On Sat, Mar 6, 2010 at 12:20 PM, Jonathan Chacón wrote: >> How can I move the keyboard focus to a control? > >Buttons don't accept keyboard focus They do on my machine. It all depends on how the user has set up Full Keyboard Access in the Key

Re: Hot to move focus to a button?

2010-03-07 Thread Joanna Carter
Hi Ricky > All you need to do is properly set up the key view loop in IB. i.e. connect > the 'nextKeyView' outlets. > > ... A very good point. I was assuming that Jonathan already knew this and just wanted to set focus to a button, other than by moving through the "tab order". Joanna -- J

Re: Hot to move focus to a button?

2010-03-07 Thread Ricky Sharp
On Mar 7, 2010, at 3:53 AM, Joanna Carter wrote: > Hi Kyle > >> Buttons don't accept keyboard focus. See the documentation for >> -[NSView canBecomeKeyView] and the related conceptual documentation. > > I realise this to be what the docs say but, if you use -makeFirstResponder: > the focus rin

Re: Hot to move focus to a button?

2010-03-07 Thread Joanna Carter
Hi Kyle > Buttons don't accept keyboard focus. See the documentation for > -[NSView canBecomeKeyView] and the related conceptual documentation. I realise this to be what the docs say but, if you use -makeFirstResponder: the focus ring is applied to the chosen button and pressing the spacebar cal

Re: Hot to move focus to a button?

2010-03-06 Thread Kyle Sluder
On Sat, Mar 6, 2010 at 12:20 PM, Jonathan Chacón wrote: > How can I move the keyboard focus to a control? Buttons don't accept keyboard focus. See the documentation for -[NSView canBecomeKeyView] and the related conceptual documentation. --Kyle Sluder

Re: Hot to move focus to a button?

2010-03-06 Thread Joanna Carter
Hi Jonathan > I'm trying to move keyboard cursor to a button but NSButton hasn't a setFocus > method. > > How can I move the keyboard focus to a control? [window makeFirstResponder:theButton]; Joanna -- Joanna Carter Carter Consulting ___ Cocoa-de

Hot to move focus to a button?

2010-03-06 Thread Jonathan Chacón
Hello, I'm trying to move keyboard cursor to a button but NSButton hasn't a setFocus method. How can I move the keyboard focus to a control? thanks Regards Jonathan Chacón Barbero Accessibility, usability and new technologies consultant Phone: +34 679953948 e-Mail: jonathan.cha...@