diff -r 4cb50131788f -r e7a464fb6d39 Source/Grid.m --- a/Source/Grid.m Thu Jul 31 11:18:13 2008 -0700 +++ b/Source/Grid.m Sun Jan 11 00:02:27 2009 -0800 @@ -167,8 +167,10 @@ cell = [self createCellAtRow: row column: col suggestedFrame: frame]; if( cell ) { [_cells replaceObjectAtIndex: index withObject: cell]; - //[self addSublayer: cell]; - [self insertSublayer: cell atIndex: 0]; + if( _reversed ) + [self addSublayer: cell]; + else + [self insertSublayer: cell atIndex: 0]; [self setNeedsDisplay]; } } @@ -178,7 +180,7 @@ - (void) addAllCells { - for( int row=_nRows-1; row>=0; row-- ) // makes 'upper' cells be in 'back' + for( int row=0; row<_nRows; row++ ) for( int col=0; col<_nColumns; col++ ) [self addCellAtRow: row column: col]; }