diff options
Diffstat (limited to 'Foundation/GTMSystemVersion.h')
-rw-r--r-- | Foundation/GTMSystemVersion.h | 23 |
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 |