[vlc-commits] [Git][videolan/vlc][master] macosx: replace deprecated NSTextAlignment APIs

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Apr 3 06:14:27 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
fe6f59e1 by Serhii Bykov at 2026-04-03T05:59:02+00:00
macosx: replace deprecated NSTextAlignment APIs

- - - - -


3 changed files:

- modules/gui/macosx/menus/VLCMainMenu.m
- modules/gui/macosx/preferences/prefs_widgets.m
- modules/gui/macosx/windows/controlsbar/VLCMainWindowControlsBar.m


Changes:

=====================================
modules/gui/macosx/menus/VLCMainMenu.m
=====================================
@@ -137,7 +137,7 @@ typedef NS_ENUM(NSInteger, VLCObjectType) {
 
     if ([NSLocale characterDirectionForLanguage:preferredLanguage] == NSLocaleLanguageDirectionRightToLeft) {
         msg_Dbg(getIntf(), "adapting interface since '%s' is a RTL language", [preferredLanguage UTF8String]);
-        [_rateTextField setAlignment:NSLeftTextAlignment];
+        [_rateTextField setAlignment:NSTextAlignmentLeft];
     }
 
 #ifdef HAVE_SPARKLE


=====================================
modules/gui/macosx/preferences/prefs_widgets.m
=====================================
@@ -1364,7 +1364,7 @@ my_width, tooltip, init_value)                                              \
         ADD_LABEL(o_textfield_min, mainFrame, 12, -30, @"-88888", @"")
         [o_textfield_min setIntegerValue: p_item->min.i];
         [o_textfield_min setAutoresizingMask:NSViewMaxXMargin ];
-        [o_textfield_min setAlignment:NSRightTextAlignment];
+        [o_textfield_min setAlignment:NSTextAlignmentRight];
         [self addSubview: o_textfield_min];
 
         /* build the maxtextfield */
@@ -1573,7 +1573,7 @@ my_width, tooltip, init_value)                                              \
         ADD_LABEL(o_textfield_min, mainFrame, 12, -30, @"-8888", @"")
         [o_textfield_min setFloatValue: p_item->min.f];
         [o_textfield_min setAutoresizingMask:NSViewMaxXMargin ];
-        [o_textfield_min setAlignment:NSRightTextAlignment];
+        [o_textfield_min setAlignment:NSTextAlignmentRight];
         [self addSubview: o_textfield_min];
 
         /* build the maxtextfield */


=====================================
modules/gui/macosx/windows/controlsbar/VLCMainWindowControlsBar.m
=====================================
@@ -125,8 +125,8 @@
     [self playbackStateChanged:nil];
     [self.stopButton setHidden:YES];
 
-    [self.timeField setAlignment: NSCenterTextAlignment];
-    [self.trailingTimeField setAlignment: NSCenterTextAlignment];
+    [self.timeField setAlignment: NSTextAlignmentCenter];
+    [self.trailingTimeField setAlignment: NSTextAlignmentCenter];
 
     [self.thumbnailTrackingView setViewToHide:_openMainVideoViewButtonOverlay];
 



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

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




More information about the vlc-commits mailing list