mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-09 18:30:59 +00:00
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:
1 parent
782f47a30b
commit
af2e0348c1
5 files changed
+66
-52
No files matched your search
@@ -11,12 +11,12 @@
|
||||
|
||||
@implementation AppController : CPObject
|
||||
{
|
||||
@outlet CPWindow customNoInitial;
|
||||
@outlet CPWindow keyWindow;
|
||||
}
|
||||
|
||||
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
|
||||
{
|
||||
[customNoInitial makeKeyAndOrderFront:self];
|
||||
[keyWindow makeKeyAndOrderFront:self];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in new issue
Block a user