* 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

@ -1,3 +1,9 @@
2021-01-22 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTableView.m (-_numRows): Take column value binding into
consideration.
* Source/NSTableColumn.m (-setValue:forKey:): Reload table data.
2021-01-22 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSWindow.m (GSOrderedWindows): Don't try to handle

View file

@ -617,8 +617,8 @@ to YES. */
{
if ([aKey isEqual: NSValueBinding])
{
// FIXME
// Reload data
[_tableView reloadData];
}
else if ([aKey isEqual: NSEnabledBinding])
{

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;
}