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

+2 -2
View File
@@ -11,12 +11,12 @@
@implementation AppController : CPObject
{
@outlet CPWindow customNoInitial;
@outlet CPWindow keyWindow;
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
[customNoInitial makeKeyAndOrderFront:self];
[keyWindow makeKeyAndOrderFront:self];
}
@end