mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:20:38 +00:00
* Source/NSTableView.m (-_numRows): Take column value binding into
consideration. * Source/NSTableColumn.m (-setValue:forKey:): Reload table data.
This commit is contained in:
parent
0d94a0bd91
commit
a4ec02e613
3 changed files with 17 additions and 1 deletions
|
@ -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>
|
2021-01-22 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSWindow.m (GSOrderedWindows): Don't try to handle
|
* Source/NSWindow.m (GSOrderedWindows): Don't try to handle
|
||||||
|
|
|
@ -617,8 +617,8 @@ to YES. */
|
||||||
{
|
{
|
||||||
if ([aKey isEqual: NSValueBinding])
|
if ([aKey isEqual: NSValueBinding])
|
||||||
{
|
{
|
||||||
// FIXME
|
|
||||||
// Reload data
|
// Reload data
|
||||||
|
[_tableView reloadData];
|
||||||
}
|
}
|
||||||
else if ([aKey isEqual: NSEnabledBinding])
|
else if ([aKey isEqual: NSEnabledBinding])
|
||||||
{
|
{
|
||||||
|
|
|
@ -6724,6 +6724,16 @@ For a more detailed explanation, -setSortDescriptors:. */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
NSTableColumn *tb = [_tableColumns objectAtIndex: 0];
|
||||||
|
GSKeyValueBinding *theBinding;
|
||||||
|
|
||||||
|
theBinding = [GSKeyValueBinding getBinding: NSValueBinding
|
||||||
|
forObject: tb];
|
||||||
|
if (theBinding != nil)
|
||||||
|
{
|
||||||
|
return [[theBinding destinationValue] count];
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME
|
// FIXME
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue