Add code to get the value of the NSEnabledBinding

This commit is contained in:
Gregory John Casamento 2024-07-14 15:40:47 -04:00
parent 45c0368602
commit ca4fe0e078
2 changed files with 27 additions and 1 deletions

View file

@ -1855,7 +1855,20 @@ Also returns the child index relative to this parent. */
flag = [result boolValue];
[cell setEditable: flag];
}
theBinding = [GSKeyValueBinding getBinding: NSEnabledBinding
forObject: tb];
if (theBinding != nil)
{
id result = nil;
BOOL flag = NO;
result = [(NSArray *)[theBinding destinationValue]
objectAtIndex: index];
flag = [result boolValue];
[cell setEnabled: flag];
}
if (_del_responds)
{
id item = [self itemAtRow: index];

View file

@ -6875,6 +6875,19 @@ For a more detailed explanation, -setSortDescriptors:. */
flag = [result boolValue];
[cell setEditable: flag];
}
theBinding = [GSKeyValueBinding getBinding: NSEnabledBinding
forObject: tb];
if (theBinding != nil)
{
id result = nil;
BOOL flag = NO;
result = [(NSArray *)[theBinding destinationValue]
objectAtIndex: index];
flag = [result boolValue];
[cell setEnabled: flag];
}
if (_del_responds)
{