diff options
author | Akemi <der.richter@gmx.de> | 2018-01-20 15:40:18 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-01-20 14:43:49 -0800 |
commit | 45ce4ba877b965291d9d9209b6dda6fbfbf83bb7 (patch) | |
tree | 0a8537e636568b6628a9e2a12d0004c871cb2854 /osdep/macosx_menubar.m | |
parent | dba143de4db8b33c28e817d67c95afa870cf5651 (diff) | |
download | mpv-45ce4ba877b965291d9d9209b6dda6fbfbf83bb7.tar.bz2 mpv-45ce4ba877b965291d9d9209b6dda6fbfbf83bb7.tar.xz |
osx: fix macOS 10.13 deprecation warning
NSFileHandlingPanelOKButton is deprecated with macOS 10.13, but the
replacement NSModalResponseOK is not available on 10.8 and earlier.
added a declaration for 10.8 and earlier since i only officially
dropped support for 10.7 and earlier. this is untested.
Diffstat (limited to 'osdep/macosx_menubar.m')
-rw-r--r-- | osdep/macosx_menubar.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/macosx_menubar.m b/osdep/macosx_menubar.m index 3a5c5a76c2..8081ed202e 100644 --- a/osdep/macosx_menubar.m +++ b/osdep/macosx_menubar.m @@ -660,7 +660,7 @@ [panel setCanChooseDirectories:YES]; [panel setAllowsMultipleSelection:YES]; - if ([panel runModal] == NSFileHandlingPanelOKButton){ + if ([panel runModal] == NSModalResponseOK){ NSMutableArray *fileArray = [[NSMutableArray alloc] init]; for (id url in [panel URLs]) [fileArray addObject:[url path]]; |