mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Implement insertRowAtIndex:...
This commit is contained in:
parent
e5d82ac329
commit
4b0f8c7173
1 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue