diff options
author | thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-03-11 17:24:33 +0000 |
---|---|---|
committer | thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-03-11 17:24:33 +0000 |
commit | 483e8d866b40a298fcc28f7a8b670ff74f11c5ab (patch) | |
tree | 5582fa69ad5301c450e213db2cd36d7727af60f2 /AppKit | |
parent | a5ada143459a5858341030c33180b36f7542e4d1 (diff) |
- increase some test coverage
- fixed system include in GTMTheme
- put the logging of execected dev logs under env control and default it to
off to make unittest output a little easier to read.
Diffstat (limited to 'AppKit')
-rw-r--r-- | AppKit/GTMNSWorkspace+Running.m | 7 | ||||
-rw-r--r-- | AppKit/GTMTheme.h | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/AppKit/GTMNSWorkspace+Running.m b/AppKit/GTMNSWorkspace+Running.m index 3c31e6b..973ad22 100644 --- a/AppKit/GTMNSWorkspace+Running.m +++ b/AppKit/GTMNSWorkspace+Running.m @@ -150,6 +150,10 @@ NSString *const kGTMWorkspaceRunningBundleVersion = @"CFBundleVersion"; long long temp = [number longLongValue]; UInt32 hi = (UInt32)((temp >> 32) & 0x00000000FFFFFFFFLL); UInt32 lo = (UInt32)((temp >> 0) & 0x00000000FFFFFFFFLL); +#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 + outPSN.highLongOfPSN = hi; + outPSN.lowLongOfPSN = lo; +#else // MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4 if ([GTMSystemVersion isLeopardOrGreater]) { outPSN.highLongOfPSN = hi; outPSN.lowLongOfPSN = lo; @@ -160,8 +164,9 @@ NSString *const kGTMWorkspaceRunningBundleVersion = @"CFBundleVersion"; #else outPSN.highLongOfPSN = lo; outPSN.lowLongOfPSN = hi; -#endif +#endif // TARGET_RT_BIG_ENDIAN } +#endif // MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4 } return outPSN; } diff --git a/AppKit/GTMTheme.h b/AppKit/GTMTheme.h index 484e8dc..5f4700e 100644 --- a/AppKit/GTMTheme.h +++ b/AppKit/GTMTheme.h @@ -17,7 +17,7 @@ // #import "GTMDefines.h" -#import <Foundation/Foundation.h> +#import <AppKit/AppKit.h> #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 |