Implement insertRowAtIndex:...

This commit is contained in:
Gregory John Casamento 2021-01-16 20:39:14 -05:00
parent e5d82ac329
commit 4b0f8c7173

View file

@ -190,6 +190,20 @@
- (NSGridRow *) insertRowAtIndex: (NSInteger)index withViews: (NSArray *)views
{
NSGridRow *gr = [[NSGridRow alloc] init];
[_rows insertObject: gr atIndex: index];
RELEASE(gr);
FOR_IN(NSView*, v, views)
{
NSGridCell *c = [[NSGridCell alloc] init];
[c setContentView: v];
RELEASE(v);
[gr _addCell: c];
}
END_FOR_IN(views);
[self _refreshCells];
return gr;
}