[vlc-commits] macosx: User modern API to set accesibility values

David Fuhrmann git at videolan.org
Thu Oct 4 12:47:33 CEST 2018


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Thu Oct  4 12:39:26 2018 +0200| [b7ef6ded495b58b0be97b84a48a4258a666b978c] | committer: David Fuhrmann

macosx: User modern API to set accesibility values

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b7ef6ded495b58b0be97b84a48a4258a666b978c
---

 modules/gui/macosx/VLCMainWindow.m | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/gui/macosx/VLCMainWindow.m b/modules/gui/macosx/VLCMainWindow.m
index 2c29cfdaaa..4d772ace31 100644
--- a/modules/gui/macosx/VLCMainWindow.m
+++ b/modules/gui/macosx/VLCMainWindow.m
@@ -182,15 +182,13 @@ static const float f_min_window_height = 307.;
     // Search Field
     [_searchField setToolTip:_NS("Search in Playlist")];
     [_searchField.cell setPlaceholderString:_NS("Search")];
-    [_searchField.cell accessibilitySetOverrideValue:_NS("Search the playlist. Results will be selected in the table.")
-                                        forAttribute:NSAccessibilityDescriptionAttribute];
+    _searchField.accessibilityLabel = _NS("Search the playlist. Results will be selected in the table.");
 
     // Dropzone
     [_dropzoneLabel setStringValue:_NS("Drop media here")];
     [_dropzoneImageView setImage:imageFromRes(@"dropzone")];
     [_dropzoneButton setTitle:_NS("Open media...")];
-    [_dropzoneButton.cell accessibilitySetOverrideValue:_NS("Open a dialog to select the media to play")
-                                           forAttribute:NSAccessibilityDescriptionAttribute];
+    _dropzoneButton.accessibilityLabel = _NS("Open a dialog to select the media to play");
 
     // Podcast view
     [_podcastAddButton setTitle:_NS("Subscribe")];



More information about the vlc-commits mailing list