mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Make gridViewWithNumberOfColumns:rows: generate an NSArray of NSArrays of NSViews before passing it to gridViewWithViews:
This commit is contained in:
parent
fd8533fab9
commit
c46d190c08
1 changed files with 3 additions and 3 deletions
|
@ -347,9 +347,9 @@
|
|||
NSMutableArray *col = [[NSMutableArray alloc] initWithCapacity: columnCount];
|
||||
for (c = 0; c < columnCount; c++)
|
||||
{
|
||||
NSGridCell *gc = [[NSGridCell alloc] init];
|
||||
[col addObject: gc];
|
||||
RELEASE(gc);
|
||||
NSView *gv = [[NSView alloc] init];
|
||||
[col addObject: gv];
|
||||
RELEASE(gv);
|
||||
}
|
||||
[rows addObject: col];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue