Start implementation of refresh/rectForCell

This commit is contained in:
Gregory John Casamento 2021-01-15 08:59:54 -05:00
parent 53f5352675
commit be109b850a

View file

@ -49,11 +49,20 @@
NSLog(@"Refresh cells in NSGridView");
FOR_IN(NSMutableArray*, row, _rows)
{
FOR_IN(NSMutableArray*, cell, row)
FOR_IN(NSGridCell*, cell, row)
{
NSRect rect = [self _rectForCell: cell
row: r
column: c];
NSView *v = [cell contentView];
if (v != nil)
{
NSRect rect = [self _rectForCell: cell
row: r
column: c];
[v setFrame: rect];
if ([v superview] == nil)
{
[self addSubview: v];
}
}
c++;
}
END_FOR_IN(row);