Use [NSString UTF8String] instead of [NSString cString] in os-macosx.m to suppress deprecation warnings

db4
Joe Groff 2008-01-26 17:32:12 -08:00
parent d40de79f00
commit e396023d51
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ void early_init(void)
const char *vm_executable_path(void)
{
return [[[NSBundle mainBundle] executablePath] cString];
return [[[NSBundle mainBundle] executablePath] UTF8String];
}
const char *default_image_path(void)
@ -55,7 +55,7 @@ const char *default_image_path(void)
else
returnVal = [path stringByAppendingPathComponent:image];
return [returnVal cString];
return [returnVal UTF8String];
}
void init_signals(void)