Browser fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4900 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-09-16 05:51:14 +00:00
parent 43faeba934
commit 3d430874e9
2 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Thu Sep 16 7:11:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* NSBrowser.m: ([-setPath:]) ensure column zero is loaded - patch
from Tim Bissell.
1999-09-13 Pedro Ivo Andrade Tavares <ptavares@iname.com>
* NSScreen.m: added the Mac OS X messages -visibleFrame: and

View file

@ -1280,7 +1280,13 @@
unsigned i;
subStrings = [path componentsSeparatedByString: _pathSeparator];
[self setLastColumn: 0];
// ensure that column zero
if (![self isLoaded]) { // is loaded
[self loadColumnZero];
}
else { // and is the last column
[self setLastColumn: 0];
}
numberOfSubStrings = [subStrings count];
if (numberOfSubStrings == 2)
@ -1333,7 +1339,7 @@
// if unable to find a cell whose title matches aStr return NO
if (!selectedCell)
{
NSLog(@"NSBrowser: unable to find cell in matrix\n");
NSLog(@"NSBrowser: unable to find cell '%@' in column %d\n", aStr, i - 1);
return NO;
}
// if the cell is not a leaf add a column to the browser for it