1.1 --- a/Source/Grid.m Thu Jul 31 11:18:13 2008 -0700
1.2 +++ b/Source/Grid.m Sun Jan 11 00:02:27 2009 -0800
1.3 @@ -167,8 +167,10 @@
1.4 cell = [self createCellAtRow: row column: col suggestedFrame: frame];
1.5 if( cell ) {
1.6 [_cells replaceObjectAtIndex: index withObject: cell];
1.7 - //[self addSublayer: cell];
1.8 - [self insertSublayer: cell atIndex: 0];
1.9 + if( _reversed )
1.10 + [self addSublayer: cell];
1.11 + else
1.12 + [self insertSublayer: cell atIndex: 0];
1.13 [self setNeedsDisplay];
1.14 }
1.15 }
1.16 @@ -178,7 +180,7 @@
1.17
1.18 - (void) addAllCells
1.19 {
1.20 - for( int row=_nRows-1; row>=0; row-- ) // makes 'upper' cells be in 'back'
1.21 + for( int row=0; row<_nRows; row++ )
1.22 for( int col=0; col<_nColumns; col++ )
1.23 [self addCellAtRow: row column: col];
1.24 }