Permalink
Browse files
GUI: use newer define for OS X 10.10+
- Loading branch information
Showing
with
4 additions
and
0 deletions.
-
+4
−0
gui/browser_osx.mm
|
|
@@ -154,7 +154,11 @@ - (IBAction) showHiddenFiles : (id) sender { |
|
|
[showHiddenFilesButton setAction:@selector(showHiddenFiles:)]; |
|
|
} |
|
|
|
|
|
#if MAC_OS_X_VERSION_MAX_ALLOWED <= 1090 |
|
|
if ([panel runModal] == NSOKButton) { |
|
|
#else |
|
|
if ([panel runModal] == NSModalResponseOK) { |
|
|
#endif |
|
|
NSURL *url = [panel URL]; |
|
|
if ([url isFileURL]) { |
|
|
const char *filename = [[url path] UTF8String]; |
|
|
|