Minor compiler-compatibility fixes. default tip
authorJens Alfke <jens@mooseyard.com>
Sun Feb 06 16:31:03 2011 -0800 (2011-02-06)
changeset 290b1c315ffc64
parent 28 06160a812d43
Minor compiler-compatibility fixes.
GeekGameBoard-iPhone.xcodeproj/project.pbxproj
Source/Dispenser.m
Source/GGBLayer.m
Source/Grid.h
     1.1 --- a/GeekGameBoard-iPhone.xcodeproj/project.pbxproj	Tue Jul 07 08:44:33 2009 -0700
     1.2 +++ b/GeekGameBoard-iPhone.xcodeproj/project.pbxproj	Sun Feb 06 16:31:03 2011 -0800
     1.3 @@ -468,11 +468,12 @@
     1.4  				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Jens Alfke";
     1.5  				GCC_C_LANGUAGE_STANDARD = gnu99;
     1.6  				GCC_TREAT_WARNINGS_AS_ERRORS = YES;
     1.7 +				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
     1.8  				GCC_WARN_ABOUT_RETURN_TYPE = YES;
     1.9  				GCC_WARN_UNUSED_VARIABLE = YES;
    1.10  				ONLY_ACTIVE_ARCH = YES;
    1.11  				PREBINDING = NO;
    1.12 -				SDKROOT = iphoneos2.0;
    1.13 +				SDKROOT = iphonesimulator3.0;
    1.14  				WARNING_CFLAGS = "-Wall";
    1.15  			};
    1.16  			name = Debug;
    1.17 @@ -485,10 +486,11 @@
    1.18  				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Jens Alfke";
    1.19  				GCC_C_LANGUAGE_STANDARD = gnu99;
    1.20  				GCC_TREAT_WARNINGS_AS_ERRORS = YES;
    1.21 +				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
    1.22  				GCC_WARN_ABOUT_RETURN_TYPE = YES;
    1.23  				GCC_WARN_UNUSED_VARIABLE = YES;
    1.24  				PREBINDING = NO;
    1.25 -				SDKROOT = iphoneos2.0;
    1.26 +				SDKROOT = iphonesimulator3.0;
    1.27  				WARNING_CFLAGS = "-Wall";
    1.28  			};
    1.29  			name = Release;
     2.1 --- a/Source/Dispenser.m	Tue Jul 07 08:44:33 2009 -0700
     2.2 +++ b/Source/Dispenser.m	Sun Feb 06 16:31:03 2011 -0800
     2.3 @@ -54,7 +54,15 @@
     2.4  }
     2.5  
     2.6  
     2.7 -@synthesize bit=_bit;
     2.8 +- (Bit*) bit
     2.9 +{
    2.10 +    return _bit;
    2.11 +}
    2.12 +
    2.13 +- (void) setBit: (Bit*)bit
    2.14 +{
    2.15 +    setObj(&_bit, bit);
    2.16 +}
    2.17  
    2.18  
    2.19  - (Bit*) createBit
     3.1 --- a/Source/GGBLayer.m	Tue Jul 07 08:44:33 2009 -0700
     3.2 +++ b/Source/GGBLayer.m	Sun Feb 06 16:31:03 2011 -0800
     3.3 @@ -28,7 +28,7 @@
     3.4      [self setNeedsDisplay];
     3.5      for( CALayer *layer in self.sublayers )
     3.6          if( [layer isKindOfClass: [GGBLayer class]] )
     3.7 -            ((GGBLayer*)layer).redisplayAll;
     3.8 +            [(GGBLayer*)layer redisplayAll];
     3.9          else
    3.10              [layer setNeedsDisplay];
    3.11  }
     4.1 --- a/Source/Grid.h	Tue Jul 07 08:44:33 2009 -0700
     4.2 +++ b/Source/Grid.h	Sun Feb 06 16:31:03 2011 -0800
     4.3 @@ -54,7 +54,7 @@
     4.4  - (id) initWithRows: (unsigned)nRows columns: (unsigned)nColumns
     4.5                frame: (CGRect)frame;
     4.6  
     4.7 -@property Class cellClass;                      // What kind of GridCells to create
     4.8 +@property (assign) Class cellClass;             // What kind of GridCells to create
     4.9  @property (readonly) unsigned rows, columns;    // Dimensions of the grid
    4.10  @property (readonly) CGSize spacing;            // x,y spacing of GridCells
    4.11  @property CGColorRef cellColor, lineColor;      // Cell background color, line color (or nil)