1.1 --- a/src/cocoaui/cocoa_win.c Tue Jul 15 06:47:49 2008 +0000
1.2 +++ b/src/cocoaui/cocoa_win.c Mon Jul 28 04:51:04 2008 +0000
1.5 #include <ApplicationServices/ApplicationServices.h>
1.7 +@interface NSWindow (OSX10_5_and_later)
1.8 +#ifndef CGFLOAT_DEFINED
1.10 + typedef double CGFloat;
1.12 + typedef float CGFloat;
1.15 +- (void)setAutorecalculatesContentBorderThickness:(BOOL)b forEdge:(NSRectEdge)e;
1.16 +- (void)setContentBorderThickness:(CGFloat)b forEdge:(NSRectEdge)e;
1.20 +#if NSAppKitVersionNumber > NSAppKitVersionNumber10_4
1.24 #define STATUSBAR_HEIGHT 25
1.25 #define STATUS_TEXT_HEIGHT 22
1.27 @@ -127,8 +144,10 @@
1.28 [[self contentView] addSubview: status];
1.29 [self makeFirstResponder: video];
1.31 - [self setAutorecalculatesContentBorderThickness: NO forEdge: NSMinYEdge ];
1.32 - [self setContentBorderThickness: STATUSBAR_HEIGHT forEdge: NSMinYEdge];
1.33 + if( [self respondsToSelector:@selector(setAutorecalculatesContentBorderThickness:forEdge:)] )
1.34 + [self setAutorecalculatesContentBorderThickness: NO forEdge: NSMinYEdge ];
1.35 + if( [self respondsToSelector:@selector(setContentBorderThickness:forEdge:)] )
1.36 + [self setContentBorderThickness: STATUSBAR_HEIGHT forEdge: NSMinYEdge];
1.38 // Share the app delegate for the purposes of keeping it in one place
1.39 [self setDelegate: [NSApp delegate]];