comparison mac/dw.m @ 1288:d10969835d2d

Changes to allow removing icon on BITMAPORICON container columns on Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 31 Oct 2011 10:03:25 +0000
parents ee9a233f1b42
children b99b0b2c2826
comparison
equal deleted inserted replaced
1287:57ce07fbec45 1288:d10969835d2d
1674 } 1674 }
1675 } 1675 }
1676 } 1676 }
1677 -(void)editCell:(id)input at:(int)row and:(int)col 1677 -(void)editCell:(id)input at:(int)row and:(int)col
1678 { 1678 {
1679 if(tvcols && input) 1679 if(tvcols)
1680 { 1680 {
1681 int index = (int)(row * [tvcols count]) + col; 1681 int index = (int)(row * [tvcols count]) + col;
1682 if(index < [data count]) 1682 if(index < [data count])
1683 { 1683 {
1684 if(!input)
1685 input = [NSNull null];
1684 [data replaceObjectAtIndex:index withObject:input]; 1686 [data replaceObjectAtIndex:index withObject:input];
1685 } 1687 }
1686 } 1688 }
1687 } 1689 }
1688 -(void)removeRow:(int)row 1690 -(void)removeRow:(int)row