is the nextKeyView really used by Cocoa ?
is the nextKeyView really used by Cocoa ?
- Subject: is the nextKeyView really used by Cocoa ?
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 11 Jul 2001 12:06:59 +0200
To try that one:
launch IB
Create an attention panel
Empty the window
Add 3 NSTextFields
+------------------+
| NSTextField 1 |
+------------------+
+------------------+
| NSTextField 2 |
+------------------+
+------------------+
| NSTextField 3 |
+------------------+
Set NSTextField 3 to be the nextKeyView of NSTextField 1
Set NSTextField 2 to be the nextKeyView of NSTextField 3
Set NSTextField 1 to be the nextKeyView of NSTextField 2
So my guess is that when I run this and do a tab from NSTextField 1 I
will go on NSTextField 3.
Guess what ? I don't. I go on NSTextField 2.
Cool. So I looked in the Learn Cocoa Book to see if I was not a complete
moron by thinking that nextKeyView doesn't mean what it means. Happily
for me, it means what it means by all mean.
I also tried in the code with setNextKeyView. Same result.
I don't even speak of adding a NSTableView in this and the fact that the
NStableView gest involved in the nextKeyView loop.
It's not even using the depth hierarchy. Then nextKeyView mechanism
seems to be completely screwed.
Mac OS X 10.0.4.
I checked that one a lot because it's so Huge that I still think I'm
wrong.