* Source/NSTableView.m (-_numRows): Take column value binding into

consideration.
* Source/NSTableColumn.m (-setValue:forKey:): Reload table data.
This commit is contained in:
Fred Kiefer 2021-01-22 22:48:13 +01:00
parent 0d94a0bd91
commit a4ec02e613
3 changed files with 17 additions and 1 deletions

View file

@ -6724,6 +6724,16 @@ For a more detailed explanation, -setSortDescriptors:. */
}
else
{
NSTableColumn *tb = [_tableColumns objectAtIndex: 0];
GSKeyValueBinding *theBinding;
theBinding = [GSKeyValueBinding getBinding: NSValueBinding
forObject: tb];
if (theBinding != nil)
{
return [[theBinding destinationValue] count];
}
// FIXME
return 0;
}