More key view loop madness

- It turns out Cocoa DOES recalculate the loop when calling recalculateKeyViewLoop. It does not wait until selectNext/PreviousKeyView is called.
- Cocoa calculates the key view loop for nibs that do not have one, but does not call recalculateKeyViewLoop.
- If there is no first responder and no initial first responder when a window first becomes key, use the first valid key view, not the first geometric key view.
- Made allViews function a method, not sure why it was a function.
- Unit tests now pass.
This commit is contained in:
Aparajita Fishman committed 2013-01-10 09:11:58 +07:00
1 parent 782f47a30b
commit af2e0348c1
5 files changed
+66 -52

No files matched your search

@@ -878,11 +878,11 @@
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">customNoInitial</string>
<string key="label">keyWindow</string>
<reference key="source" ref="635946545"/>
<reference key="destination" ref="561821772"/>
</object>
<int key="connectionID">736</int>
<int key="connectionID">783</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
@@ -1751,7 +1751,7 @@
<reference key="dict.values" ref="0"/>
</object>
<nil key="sourceID"/>
<int key="maxID">779</int>
<int key="maxID">783</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -1760,13 +1760,13 @@
<string key="className">AppController</string>
<string key="superclassName">NSObject</string>
<object class="NSMutableDictionary" key="outlets">
<string key="NS.key.0">customNoInitial</string>
<string key="NS.key.0">keyWindow</string>
<string key="NS.object.0">NSWindow</string>
</object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
<string key="NS.key.0">customNoInitial</string>
<string key="NS.key.0">keyWindow</string>
<object class="IBToOneOutletInfo" key="NS.object.0">
<string key="name">customNoInitial</string>
<string key="name">keyWindow</string>
<string key="candidateClassName">NSWindow</string>
</object>
</object>