# HG changeset patch # User Jens Alfke # Date 1297038663 28800 # Node ID 0b1c315ffc645e7d4c965646db6c008afd00c540 # Parent 06160a812d431c36ebec5921199eb4b3af119f26 Minor compiler-compatibility fixes. diff -r 06160a812d43 -r 0b1c315ffc64 GeekGameBoard-iPhone.xcodeproj/project.pbxproj --- a/GeekGameBoard-iPhone.xcodeproj/project.pbxproj Tue Jul 07 08:44:33 2009 -0700 +++ b/GeekGameBoard-iPhone.xcodeproj/project.pbxproj Sun Feb 06 16:31:03 2011 -0800 @@ -468,11 +468,12 @@ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Jens Alfke"; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_TREAT_WARNINGS_AS_ERRORS = YES; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; ONLY_ACTIVE_ARCH = YES; PREBINDING = NO; - SDKROOT = iphoneos2.0; + SDKROOT = iphonesimulator3.0; WARNING_CFLAGS = "-Wall"; }; name = Debug; @@ -485,10 +486,11 @@ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Jens Alfke"; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_TREAT_WARNINGS_AS_ERRORS = YES; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; PREBINDING = NO; - SDKROOT = iphoneos2.0; + SDKROOT = iphonesimulator3.0; WARNING_CFLAGS = "-Wall"; }; name = Release; diff -r 06160a812d43 -r 0b1c315ffc64 Source/Dispenser.m --- a/Source/Dispenser.m Tue Jul 07 08:44:33 2009 -0700 +++ b/Source/Dispenser.m Sun Feb 06 16:31:03 2011 -0800 @@ -54,7 +54,15 @@ } -@synthesize bit=_bit; +- (Bit*) bit +{ + return _bit; +} + +- (void) setBit: (Bit*)bit +{ + setObj(&_bit, bit); +} - (Bit*) createBit diff -r 06160a812d43 -r 0b1c315ffc64 Source/GGBLayer.m --- a/Source/GGBLayer.m Tue Jul 07 08:44:33 2009 -0700 +++ b/Source/GGBLayer.m Sun Feb 06 16:31:03 2011 -0800 @@ -28,7 +28,7 @@ [self setNeedsDisplay]; for( CALayer *layer in self.sublayers ) if( [layer isKindOfClass: [GGBLayer class]] ) - ((GGBLayer*)layer).redisplayAll; + [(GGBLayer*)layer redisplayAll]; else [layer setNeedsDisplay]; } diff -r 06160a812d43 -r 0b1c315ffc64 Source/Grid.h --- a/Source/Grid.h Tue Jul 07 08:44:33 2009 -0700 +++ b/Source/Grid.h Sun Feb 06 16:31:03 2011 -0800 @@ -54,7 +54,7 @@ - (id) initWithRows: (unsigned)nRows columns: (unsigned)nColumns frame: (CGRect)frame; -@property Class cellClass; // What kind of GridCells to create +@property (assign) Class cellClass; // What kind of GridCells to create @property (readonly) unsigned rows, columns; // Dimensions of the grid @property (readonly) CGSize spacing; // x,y spacing of GridCells @property CGColorRef cellColor, lineColor; // Cell background color, line color (or nil)