Skip navigation.
 
mlRe: NSTabView and edit fields
FROM : Ricky Sharp
DATE : Tue Aug 01 18:25:34 2006

On Tuesday, August 01, 2006, at 10:29AM, John Stiles <<email_removed>> wrote:

>I don't think it's apparent that a control in the window /must/ have
>focus. The window itself, or the window frame container, can have the
>focus. That's perfectly legitimate AFAICS. And I certainly don't think
>the impetus is on the developer to force focus on a control in a window
>whenever you show a window or sheet---this certainly isn't a common
>Cocoa programming technique.


But shouldn't you always have one control be marked as the first responder?  Keep in mind that users of full keyboard access need to have some control be focused to allow them to easily move to other controls.

In all my apps, I always wire the entire key loop in IB and establish a first responder.  Note that I wire not only edit fields, but every single control that users can interact with.  Cocoa does the right thing when full keyboard access is turned on/off.

--
Rick Sharp
Instant Interactive(tm)

Related mailsAuthorDate
mlNSTabView and edit fields John Stiles Jul 28, 04:15
mlRe: NSTabView and edit fields John Stiles Jul 31, 22:54
mlRe: Re: NSTabView and edit fields Wagner Truppel Jul 31, 23:45
mlRe: NSTabView and edit fields John Stiles Aug 1, 00:03
mlRe: NSTabView and edit fields Ricky Sharp Aug 1, 02:24
mlRe: NSTabView and edit fields John Stiles Aug 1, 02:53
mlRe: NSTabView and edit fields Matt Neuburg Aug 1, 17:14
mlRe: NSTabView and edit fields John Stiles Aug 1, 17:30
mlRe: NSTabView and edit fields Ricky Sharp Aug 1, 18:22
mlRe: NSTabView and edit fields Ricky Sharp Aug 1, 18:25
mlRe: NSTabView and edit fields Matt Neuburg Aug 1, 18:38
mlRe: NSTabView and edit fields John Stiles Aug 1, 19:09
mlRe: NSTabView and edit fields Matt Neuburg Aug 1, 19:35