Make gridViewWithNumberOfColumns:rows: generate an NSArray of NSArrays of NSViews before passing it to gridViewWithViews:

This commit is contained in:
Gregory John Casamento 2021-03-17 09:19:12 -04:00
parent fd8533fab9
commit c46d190c08

View file

@ -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];
}