Commits

Adrian Godoroja  committed 942e5c3

Added isOnLionOrNewer.

  • Participants
  • Parent commits f3d6686

Comments (0)

Files changed (2)

File Frameworks/AIUtilities Framework/Source/AIApplicationAdditions.h

 @interface NSApplication (AIApplicationAdditions)
 
 - (NSString *)applicationVersion;
-- (BOOL)isOnSnowLeopardOrBetter;
+
+- (BOOL)isOnLionOrNewer;
 
 @end

File Frameworks/AIUtilities Framework/Source/AIApplicationAdditions.m

 
 #import "AIApplicationAdditions.h"
 
+// Make sure the version number defines exist; when compiling on 10.6, NSAppKitVersionNumber10_6 isn't defined 
+#ifndef NSAppKitVersionNumber10_6
+#define NSAppKitVersionNumber10_6 1038
+#endif 
+
+
 @implementation NSApplication (AIApplicationAdditions)
 
 - (NSString *)applicationVersion
 	return [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleVersionKey];
 }
 
-//Make sure the version number defines exist; when compiling in 10.5, NSAppKitVersionNumber10_5 isn't defined 
-#ifndef NSAppKitVersionNumber10_5
-#define NSAppKitVersionNumber10_5 949
-#endif 
-
-- (BOOL)isOnSnowLeopardOrBetter
+- (BOOL)isOnLionOrNewer
 {
-	return (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_5);
+	return (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6);
 }
 
-
 @end