Row gets the correct value using the table columb binding

This commit is contained in:
Gregory John Casamento 2023-04-16 03:28:19 -04:00
parent 16f285ed7f
commit a22c79711d

View file

@ -1948,13 +1948,14 @@ Also returns the child index relative to this parent. */
row: (NSInteger) index
{
id result = nil;
if (_theBinding != nil)
GSKeyValueBinding *binding =
[GSKeyValueBinding getBinding: NSValueBinding
forObject: tb];
if (binding != nil)
{
id item = [(NSArray *)[_theBinding destinationValue]
objectAtIndex: index];
result = [item valueForKeyPath: @"value"];
result = [(NSArray *)[binding destinationValue]
objectAtIndex: index];
}
else if ([_dataSource respondsToSelector:
@selector(outlineView:objectValueForTableColumn:byItem:)])