mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Start implementation of refresh/rectForCell
This commit is contained in:
parent
53f5352675
commit
be109b850a
1 changed files with 13 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue