aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMSystemVersion.h
diff options
context:
space:
mode:
authorGravatar thomasvl <thomasvl@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2008-04-14 17:21:02 +0000
committerGravatar thomasvl <thomasvl@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2008-04-14 17:21:02 +0000
commitcdf070c8d76ffc4eaa24e8671756cbbe9ceb2890 (patch)
treefaa9ae3a72a6591d6a6add7ceed7f91e92ade11f /Foundation/GTMSystemVersion.h
parent0aaecac6ff2bc89e58a0c8c6d6ad62e02fb2b011 (diff)
See the ReleaseNotes for the full details, highlights:
- bug fixes - code coverage support - more complete unittests - full support for unittesting UIs - support for the iphone sdk (include ui unittesting)
Diffstat (limited to 'Foundation/GTMSystemVersion.h')
-rw-r--r--Foundation/GTMSystemVersion.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/Foundation/GTMSystemVersion.h b/Foundation/GTMSystemVersion.h
index c9f9d75..13c3c19 100644
--- a/Foundation/GTMSystemVersion.h
+++ b/Foundation/GTMSystemVersion.h
@@ -17,29 +17,32 @@
//
#import <Foundation/Foundation.h>
+#import "GTMDefines.h"
-/// A class for getting information about what system we are running on
+// A class for getting information about what system we are running on
@interface GTMSystemVersion : NSObject
-/// Returns YES if running on 10.3, NO otherwise.
+// Returns the current system version major.minor.bugFix
++ (void)getMajor:(long*)major minor:(long*)minor bugFix:(long*)bugFix;
+
+#if GTM_MACOS_SDK
+// Returns YES if running on 10.3, NO otherwise.
+ (BOOL)isPanther;
-/// Returns YES if running on 10.4, NO otherwise.
+// Returns YES if running on 10.4, NO otherwise.
+ (BOOL)isTiger;
-/// Returns YES if running on 10.5, NO otherwise.
+// Returns YES if running on 10.5, NO otherwise.
+ (BOOL)isLeopard;
-/// Returns a YES/NO if the system is 10.3 or better
+// Returns a YES/NO if the system is 10.3 or better
+ (BOOL)isPantherOrGreater;
-/// Returns a YES/NO if the system is 10.4 or better
+// Returns a YES/NO if the system is 10.4 or better
+ (BOOL)isTigerOrGreater;
-/// Returns a YES/NO if the system is 10.5 or better
+// Returns a YES/NO if the system is 10.5 or better
+ (BOOL)isLeopardOrGreater;
-
-/// Returns the current system version major.minor.bugFix
-+ (void)getMajor:(long*)major minor:(long*)minor bugFix:(long*)bugFix;
+#endif // GTM_IPHONE_SDK
@end