(svn r17711) -Codechange: [OSX] Don't use deprecated methods to construct a Cocoa string.

This commit is contained in:
michi_cc
2009-10-04 21:33:31 +00:00
parent 5517e5371c
commit 3bf4f13f3b
4 changed files with 4 additions and 5 deletions

View File

@@ -428,7 +428,6 @@ void WindowQuartzSubdriver::GetDeviceInfo()
bool WindowQuartzSubdriver::SetVideoMode(int width, int height)
{
char caption[50];
NSString *nsscaption;
unsigned int style;
NSRect contentRect;
BOOL isCustom = NO;
@@ -470,7 +469,7 @@ bool WindowQuartzSubdriver::SetVideoMode(int width, int height)
[ window setDriver:this ];
snprintf(caption, sizeof(caption), "OpenTTD %s", _openttd_revision);
nsscaption = [ [ NSString alloc ] initWithCString:caption ];
NSString *nsscaption = [ [ NSString alloc ] initWithUTF8String:caption ];
[ window setTitle: nsscaption ];
[ window setMiniwindowTitle: nsscaption ];
[ nsscaption release ];