[vlc-commits] macosx/QuincyKit: minor tweak so we can set our own app versions if needed

Felix Paul Kühne git at videolan.org
Fri Jan 10 18:24:53 CET 2014


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Jan 10 17:49:41 2014 +0100| [9dd741de1bc2bba7092dee3c22e40ad251a397e7] | committer: Felix Paul Kühne

macosx/QuincyKit: minor tweak so we can set our own app versions if needed

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

 modules/gui/macosx/BWQuincyManager.m |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/modules/gui/macosx/BWQuincyManager.m b/modules/gui/macosx/BWQuincyManager.m
index ecfbed1..79b4193 100644
--- a/modules/gui/macosx/BWQuincyManager.m
+++ b/modules/gui/macosx/BWQuincyManager.m
@@ -34,7 +34,15 @@
 #define SDK_NAME @"Quincy"
 #define SDK_VERSION @"2.1.6"
 
+ at interface BWQuincyManager ()
+{
+    NSString *_customAppVersion;
+}
+
+ at end
+
 @interface BWQuincyManager(private)
+
 - (void) startManager;
 
 - (void) _postXML:(NSString*)xml toURL:(NSURL*)url;
@@ -86,6 +94,8 @@
 
   [_crashFile release];
   [_quincyUI release];
+  if (_customAppVersion)
+       [_customAppVersion release];
 
   [super dealloc];
 }
@@ -422,7 +432,16 @@
   return string;
 }
 
+- (void)setApplicationVersion:(NSString *)appVersion
+{
+    _customAppVersion = appVersion;
+    [_customAppVersion retain];
+}
+
 - (NSString *) applicationVersion {
+    if (_customAppVersion)
+        return _customAppVersion;
+
   NSString* string = [[[NSBundle mainBundle] localizedInfoDictionary] valueForKey: @"CFBundleVersion"];
 
   if (!string)



More information about the vlc-commits mailing list