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)
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 mails | Author | Date |
|---|---|---|
| John Stiles | Jul 28, 04:15 | |
| John Stiles | Jul 31, 22:54 | |
| Wagner Truppel | Jul 31, 23:45 | |
| John Stiles | Aug 1, 00:03 | |
| Ricky Sharp | Aug 1, 02:24 | |
| John Stiles | Aug 1, 02:53 | |
| Matt Neuburg | Aug 1, 17:14 | |
| John Stiles | Aug 1, 17:30 | |
| Ricky Sharp | Aug 1, 18:22 | |
| Ricky Sharp | Aug 1, 18:25 | |
| Matt Neuburg | Aug 1, 18:38 | |
| John Stiles | Aug 1, 19:09 | |
| Matt Neuburg | Aug 1, 19:35 |






Cocoa mail archive

