mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 23:31:02 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5169 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b8f0540e43
commit
b439de410c
1 changed files with 31 additions and 21 deletions
|
@ -173,31 +173,12 @@ static SEL getSel = @selector(objectAtIndex:);
|
|||
numberOfColumns: 0];
|
||||
}
|
||||
|
||||
- (id) initWithFrame: (NSRect)frameRect
|
||||
- (id) _privateFrame: (NSRect)frameRect
|
||||
mode: (int)aMode
|
||||
cellClass: (Class)class
|
||||
numberOfRows: (int)rowsHigh
|
||||
numberOfColumns: (int)colsWide
|
||||
{
|
||||
self = [self initWithFrame: frameRect
|
||||
mode: aMode
|
||||
prototype: nil
|
||||
numberOfRows: rowsHigh
|
||||
numberOfColumns: colsWide];
|
||||
[self setCellClass: class];
|
||||
return self;
|
||||
}
|
||||
|
||||
- (id) initWithFrame: (NSRect)frameRect
|
||||
mode: (int)aMode
|
||||
prototype: (NSCell*)prototype
|
||||
numberOfRows: (int)rows
|
||||
numberOfColumns: (int)cols
|
||||
{
|
||||
[super initWithFrame: frameRect];
|
||||
|
||||
myZone = [self zone];
|
||||
[self setPrototype: prototype];
|
||||
[self _renewRows: rows columns: cols rowSpace: 0 colSpace: 0];
|
||||
mode = aMode;
|
||||
[self setFrame: frameRect];
|
||||
|
@ -222,10 +203,39 @@ static SEL getSel = @selector(objectAtIndex:);
|
|||
{
|
||||
selectedRow = selectedColumn = 0;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (id) initWithFrame: (NSRect)frameRect
|
||||
mode: (int)aMode
|
||||
cellClass: (Class)class
|
||||
numberOfRows: (int)rowsHigh
|
||||
numberOfColumns: (int)colsWide
|
||||
{
|
||||
self = [super initWithFrame: frameRect];
|
||||
|
||||
[self setCellClass: class];
|
||||
return [self _privateFrame: frameRect
|
||||
mode: aMode
|
||||
numberOfRows: rowsHigh
|
||||
numberOfColumns: colsWide];
|
||||
}
|
||||
|
||||
- (id) initWithFrame: (NSRect)frameRect
|
||||
mode: (int)aMode
|
||||
prototype: (NSCell*)prototype
|
||||
numberOfRows: (int)rowsHigh
|
||||
numberOfColumns: (int)colsWide
|
||||
{
|
||||
self = [super initWithFrame: frameRect];
|
||||
|
||||
[self setPrototype: prototype];
|
||||
return [self _privateFrame: frameRect
|
||||
mode: aMode
|
||||
numberOfRows: rowsHigh
|
||||
numberOfColumns: colsWide];
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
int i;
|
||||
|
|
Loading…
Reference in a new issue