]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/intf.h
Change the searchField in NSSearchField when macos >= 10.3
[vlc] / modules / gui / macosx / intf.h
index 437db45492ca3a94791979ce752329c3876f76b4..fca91a13baa72288dddcdd952a2618099f07e98a 100644 (file)
@@ -45,6 +45,10 @@ unsigned int CocoaKeyToVLC( unichar i_key );
  * the translated string. the translation should be '1:translatedstring' though */
 #define _ANS(s) [[[VLCMain sharedInstance] localizedString: _(s)] substringFromIndex:2]
 
+#define MACOS_VERSION [[[NSDictionary dictionaryWithContentsOfFile: \
+            @"/System/Library/CoreServices/SystemVersion.plist"] \
+            objectForKey: @"ProductVersion"] floatValue]
+
 /*****************************************************************************
  * intf_sys_t: description and status of the interface
  *****************************************************************************/