Skip to content

Commit

Permalink
MACOSX: Replace use of a 10.4 only API by one available since 10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jan 14, 2012
1 parent ad1c2a4 commit f57b66e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gui/browser_osx.mm
Expand Up @@ -62,11 +62,7 @@
NSOpenPanel * panel = [NSOpenPanel openPanel];
[panel setCanChooseDirectories:YES];
if ([panel runModalForTypes:nil] == NSOKButton) {
#ifdef __POWERPC__
const char *filename = [[panel filename] cString];
#else
const char *filename = [[panel filename] cStringUsingEncoding:NSUTF8StringEncoding];
#endif
const char *filename = [[panel filename] UTF8String];
_choice = Common::FSNode(filename);
choiceMade = true;
}
Expand Down

0 comments on commit f57b66e

Please sign in to comment.