mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Row gets the correct value using the table columb binding
This commit is contained in:
parent
16f285ed7f
commit
a22c79711d
1 changed files with 7 additions and 6 deletions
|
@ -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:)])
|
||||
|
|
Loading…
Reference in a new issue