From 1adc1738f71db328568a830e384185bd47c4a0fe Mon Sep 17 00:00:00 2001 From: bjarni Date: Sat, 10 Dec 2005 23:03:59 +0000 Subject: (svn r3286) -Fix: [OSX] 10.2 works again and universal binaries got 10.2 as target by default --- video/cocoa_v.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'video') diff --git a/video/cocoa_v.m b/video/cocoa_v.m index 2dbc2c478..a0b7f50aa 100644 --- a/video/cocoa_v.m +++ b/video/cocoa_v.m @@ -27,9 +27,11 @@ extern void ShowMenuBar(void); extern void HideMenuBar(void); /* Disables a warning. This is needed since the method exists but has been dropped from the header, supposedly as of 10.4. */ +#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4) @interface NSApplication(NSAppleMenu) - (void)setAppleMenu:(NSMenu *)menu; @end +#endif /* Name conflict */ @@ -1180,7 +1182,7 @@ static const char *QZ_SetVideoWindowed (uint width, uint height) { return "Could not create the Cocoa window"; snprintf(caption, sizeof(caption), "OpenTTD %s", _openttd_revision); - nsscaption = [ [ NSString alloc ] initWithCString:caption encoding:NSASCIIStringEncoding ]; + nsscaption = [ [ NSString alloc ] initWithCString:caption ]; [ _cocoa_video_data.window setTitle:nsscaption ]; [ _cocoa_video_data.window setMiniwindowTitle:nsscaption ]; [ nsscaption release ]; -- cgit v1.2.3-54-g00ecf