mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-03 01:10:54 +00:00
Add some debug information to find out why nodes are not being displayed in treecontroller
This commit is contained in:
parent
5d5d7d3fb4
commit
680ca38c29
2 changed files with 24 additions and 10 deletions
|
@ -3497,7 +3497,8 @@ static NSDictionary *titleTextAttributes[3] = {nil, nil, nil};
|
||||||
unexpandable = [[NSImage alloc] initWithSize: [expanded size]];
|
unexpandable = [[NSImage alloc] initWithSize: [expanded size]];
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NSLog(@"rowIndex = %ld, numberOfRows = %ld", rowIndex, numberOfRows);
|
||||||
if (rowIndex >= numberOfRows)
|
if (rowIndex >= numberOfRows)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -3545,11 +3546,8 @@ static NSDictionary *titleTextAttributes[3] = {nil, nil, nil};
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
id value = nil;
|
id value = [ov _objectValueForTableColumn: tb
|
||||||
|
row: rowIndex];
|
||||||
value = [ov _objectValueForTableColumn: tb
|
|
||||||
row: rowIndex];
|
|
||||||
NSLog(@"value = %@", value);
|
|
||||||
[cell setObjectValue: value];
|
[cell setObjectValue: value];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -464,11 +464,25 @@ static NSImage *unexpandable = nil;
|
||||||
*/
|
*/
|
||||||
- (BOOL) isExpandable: (id)item
|
- (BOOL) isExpandable: (id)item
|
||||||
{
|
{
|
||||||
if (item == nil)
|
BOOL result = NO;
|
||||||
|
|
||||||
|
if (_theBinding == nil)
|
||||||
{
|
{
|
||||||
return NO;
|
if (item == nil)
|
||||||
|
{
|
||||||
|
result = NO;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = [_dataSource outlineView: self isItemExpandable: item];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return [_dataSource outlineView: self isItemExpandable: item];
|
else
|
||||||
|
{
|
||||||
|
result = [[item valueForKeyPath: _leafKeyPath] boolValue];
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1531,7 +1545,7 @@ Also returns the child index relative to this parent. */
|
||||||
[_editedCell setEditable: _dataSource_editable];
|
[_editedCell setEditable: _dataSource_editable];
|
||||||
tb = [_tableColumns objectAtIndex: columnIndex];
|
tb = [_tableColumns objectAtIndex: columnIndex];
|
||||||
[_editedCell setObjectValue: [self _objectValueForTableColumn: tb
|
[_editedCell setObjectValue: [self _objectValueForTableColumn: tb
|
||||||
row: rowIndex]];
|
row: rowIndex]];
|
||||||
|
|
||||||
// But of course the delegate can mess it up if it wants
|
// But of course the delegate can mess it up if it wants
|
||||||
[self _willDisplayCell: _editedCell
|
[self _willDisplayCell: _editedCell
|
||||||
|
@ -1850,6 +1864,8 @@ Also returns the child index relative to this parent. */
|
||||||
byItem: item];
|
byItem: item];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NSLog(@"RESULT ======= %@, class = %@", result, NSStringFromClass([result class]));
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue