[vlc-commits] [Git][videolan/vlc][master] macosx: replace deprecated NSModal type constants

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Apr 22 02:54:02 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
459afe44 by Serhii Bykov at 2026-04-22T02:30:06+00:00
macosx: replace deprecated NSModal type constants

- - - - -


3 changed files:

- modules/gui/macosx/menus/VLCMainMenu.m
- modules/gui/macosx/panels/VLCInformationWindowController.m
- modules/gui/macosx/windows/convertandsave/VLCOutput.m


Changes:

=====================================
modules/gui/macosx/menus/VLCMainMenu.m
=====================================
@@ -1363,7 +1363,7 @@ typedef NS_ENUM(NSInteger, VLCObjectType) {
     [savePanel setAllowedFileTypes:allowedFileTypes];
     [savePanel setCanSelectHiddenExtension:YES];
 
-    if ([savePanel runModal] == NSFileHandlingPanelOKButton) {
+    if ([savePanel runModal] == NSModalResponseOK) {
         NSString *filename = [[savePanel URL] path];
         VLCPlaylistExportModuleDescription *exportModule = availableExportModules[[_playlistSaveAccessoryPopup indexOfSelectedItem]];
 


=====================================
modules/gui/macosx/panels/VLCInformationWindowController.m
=====================================
@@ -695,7 +695,7 @@ SET_INPUTITEM_PROP(field, field)                \
     [panel setAllowsOtherFileTypes:NO];
     [panel setPrompt:_NS("Choose")];
     [panel beginSheetModalForWindow:self.window completionHandler:^(const NSInteger result) {
-        if (result != NSFileHandlingPanelOKButton) {
+        if (result != NSModalResponseOK) {
             return;
         }
 


=====================================
modules/gui/macosx/windows/convertandsave/VLCOutput.m
=====================================
@@ -416,7 +416,7 @@
     [save_panel setPrompt: _NS("Save")];
     [save_panel setNameFieldStringValue: name];
 
-    if ([save_panel runModal] == NSFileHandlingPanelOKButton) {
+    if ([save_panel runModal] == NSModalResponseOK) {
         [self.fileTextField setStringValue: [[save_panel URL] path]];
         [self outputInfoChanged: nil];
     }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/459afe443e0d953873660af173061fff63b6d515

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/459afe443e0d953873660af173061fff63b6d515
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list