FROM : Jim Correia
DATE : Wed Aug 23 22:51:40 2006
As I'm sure everyone here knows, there are two modes for the keyboard
loop:
- Text boxes and lists only
- All controls
Suppose I have a custom control which falls into the first category,
but isn't a direct descendant of NSTextField or NSTableView. How do I
get it to participate in the keyboard loop when full keyboard access
is turned off? (Does the answer depend on whether I've subclasses
NSView or NSControl?)
What if the situation is reversed? Suppose I have a custom
NSTextField that should either
- only particulate in the keyboard loop in "All controls" mode
- only become focused on a direct click
(For the sake of this argument, let's ignore the issue of whether
this is a good idea HI-wise.)
In the latter case, is returning a conditional value from -
acceptsFirstResponder depending on -[NSWindow
keyViewSelectionDirection] the right solution?
I have read through:
http://developer.apple.com/documentation/Cocoa/Conceptual/
EventOverview/HandlingKeyEvents/chapter_6_section_5.html#//apple_ref/
doc/uid/10000060i-CH7-SW9
and it didn't seem to cover this topic. Is this documented, and I
have not located the docs yet?
Thanks,
Jim
DATE : Wed Aug 23 22:51:40 2006
As I'm sure everyone here knows, there are two modes for the keyboard
loop:
- Text boxes and lists only
- All controls
Suppose I have a custom control which falls into the first category,
but isn't a direct descendant of NSTextField or NSTableView. How do I
get it to participate in the keyboard loop when full keyboard access
is turned off? (Does the answer depend on whether I've subclasses
NSView or NSControl?)
What if the situation is reversed? Suppose I have a custom
NSTextField that should either
- only particulate in the keyboard loop in "All controls" mode
- only become focused on a direct click
(For the sake of this argument, let's ignore the issue of whether
this is a good idea HI-wise.)
In the latter case, is returning a conditional value from -
acceptsFirstResponder depending on -[NSWindow
keyViewSelectionDirection] the right solution?
I have read through:
http://developer.apple.com/documentation/Cocoa/Conceptual/
EventOverview/HandlingKeyEvents/chapter_6_section_5.html#//apple_ref/
doc/uid/10000060i-CH7-SW9
and it didn't seem to cover this topic. Is this documented, and I
have not located the docs yet?
Thanks,
Jim
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

