Patch by Christopher Culver:

Define empty [sizeToFit] method to override NSControl implementation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17747 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2003-09-29 21:15:37 +00:00
parent a09deaeee7
commit fd4725c834

View file

@ -530,7 +530,7 @@ static NSTextFieldCell *titleCell;
* specified path is already partially selected. If this is the * specified path is already partially selected. If this is the
* case, we can avoid redrawing those columns. * case, we can avoid redrawing those columns.
*/ */
for (i = 0; i <= _lastColumnLoaded && i < numberOfSubStrings; i++) for (i = 0; i <= _lastColumnLoaded && (unsigned)i < numberOfSubStrings; i++)
{ {
NSString *c = [[self selectedCellInColumn: i] stringValue]; NSString *c = [[self selectedCellInColumn: i] stringValue];
@ -574,7 +574,7 @@ static NSTextFieldCell *titleCell;
} }
else else
{ {
unsigned numOfRows = [matrix numberOfRows]; int numOfRows = [matrix numberOfRows];
int row; int row;
// find the cell in the browser matrix which is equal to aStr // find the cell in the browser matrix which is equal to aStr
@ -1710,6 +1710,12 @@ static NSTextFieldCell *titleCell;
} }
} }
/** Override from NSControl. Don't do anything to change the size of the
browser. */
- (void) sizeToFit
{
}
/* /*
* Setting the delegate * Setting the delegate
*/ */