diff --git a/AppKit/NSApplication.h b/AppKit/NSApplication.h index ecfeb6ba..6c5bfc00 100755 --- a/AppKit/NSApplication.h +++ b/AppKit/NSApplication.h @@ -103,7 +103,7 @@ typedef enum { -delegate; -(NSArray *)windows; --(NSWindow *)windowWithWindowNumber:(int)number; +-(NSWindow *)windowWithWindowNumber:(NSInteger)number; -(NSMenu *)mainMenu; -(NSMenu *)windowsMenu; diff --git a/AppKit/NSApplication.m b/AppKit/NSApplication.m index cdedf530..452866bc 100755 --- a/AppKit/NSApplication.m +++ b/AppKit/NSApplication.m @@ -156,7 +156,7 @@ id NSApp=nil; return _windows; } --(NSWindow *)windowWithWindowNumber:(int)number { +-(NSWindow *)windowWithWindowNumber:(NSInteger)number { int i,count=[_windows count]; for(i=0;i #import +@interface NSWindow(private) ++(BOOL)hasMainMenuForStyleMask:(NSUInteger)styleMask; +@end + @implementation NSWindowTemplate -initWithCoder:(NSCoder *)coder { @@ -32,7 +36,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI _windowAutosave=[[keyed decodeObjectForKey:@"NSFrameAutosaveName"] retain]; _windowRect.origin.y -= _screenRect.size.height - [[NSScreen mainScreen] frame].size.height; - if (![_windowClass isEqualToString:@"NSPanel"]) + if ([_windowClass hasMainMenuForStyleMask:_windowStyleMask]) _windowRect.origin.y -= [NSMainMenuView menuHeight]; // compensation for the additional menu bar } else { diff --git a/Foundation/NSDebug.m b/Foundation/NSDebug.m index 5581a7fb..05e2af0d 100755 --- a/Foundation/NSDebug.m +++ b/Foundation/NSDebug.m @@ -13,8 +13,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI #endif BOOL NSZombieEnabled=NO; -BOOL NSDebugEnabled=YES; -BOOL NSCooperativeThreadsEnabled=YES; +BOOL NSDebugEnabled=NO; +BOOL NSCooperativeThreadsEnabled=NO; const char* _NSPrintForDebugger(id object) { if(object && [object respondsToSelector:@selector(description)]) {