[vlc-commits] macosx: fix compilation with legacy SDK versions

Felix Paul Kühne git at videolan.org
Mon May 6 09:41:31 CEST 2019


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Mon May  6 09:41:02 2019 +0200| [6879ee14e930fa84b4deaffed64ab369a25a7231] | committer: Felix Paul Kühne

macosx: fix compilation with legacy SDK versions

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

 .../library/VLCLibraryCollectionViewSupplementaryElementView.m       | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/library/VLCLibraryCollectionViewSupplementaryElementView.m b/modules/gui/macosx/library/VLCLibraryCollectionViewSupplementaryElementView.m
index 1eda8d31d5..9ce0a78e78 100644
--- a/modules/gui/macosx/library/VLCLibraryCollectionViewSupplementaryElementView.m
+++ b/modules/gui/macosx/library/VLCLibraryCollectionViewSupplementaryElementView.m
@@ -23,6 +23,7 @@
 #import "VLCLibraryCollectionViewSupplementaryElementView.h"
 #import "extensions/NSFont+VLCAdditions.h"
 #import "extensions/NSColor+VLCAdditions.h"
+#import "main/CompatibilityFixes.h"
 
 NSString *VLCLibrarySupplementaryElementViewIdentifier = @"VLCLibrarySupplementaryElementViewIdentifier";
 
@@ -51,7 +52,9 @@ NSString *VLCLibrarySupplementaryElementViewIdentifier = @"VLCLibrarySupplementa
 
 - (void)viewDidChangeEffectiveAppearance
 {
-    self.textColor = [self.effectiveAppearance.name isEqualToString:NSAppearanceNameDarkAqua] ? [NSColor VLClibraryDarkTitleColor] : [NSColor VLClibraryLightTitleColor];
+    if (@available(macOS 10_14, *)) {
+        self.textColor = [self.effectiveAppearance.name isEqualToString:NSAppearanceNameDarkAqua] ? [NSColor VLClibraryDarkTitleColor] : [NSColor VLClibraryLightTitleColor];
+    }
 }
 
 @end



More information about the vlc-commits mailing list