Add code to get the value of the NSEditableBinding

This commit is contained in:
Gregory John Casamento 2024-07-14 15:14:07 -04:00
parent f253f3fa0e
commit 45c0368602
2 changed files with 30 additions and 0 deletions

View file

@ -1841,6 +1841,21 @@ Also returns the child index relative to this parent. */
forTableColumn: (NSTableColumn *)tb
row: (NSInteger)index
{
GSKeyValueBinding *theBinding;
theBinding = [GSKeyValueBinding getBinding: NSEditableBinding
forObject: tb];
if (theBinding != nil)
{
id result = nil;
BOOL flag = NO;
result = [(NSArray *)[theBinding destinationValue]
objectAtIndex: index];
flag = [result boolValue];
[cell setEditable: flag];
}
if (_del_responds)
{
id item = [self itemAtRow: index];

View file

@ -6861,6 +6861,21 @@ For a more detailed explanation, -setSortDescriptors:. */
forTableColumn: (NSTableColumn *)tb
row: (NSInteger)index
{
GSKeyValueBinding *theBinding;
theBinding = [GSKeyValueBinding getBinding: NSEditableBinding
forObject: tb];
if (theBinding != nil)
{
id result = nil;
BOOL flag = NO;
result = [(NSArray *)[theBinding destinationValue]
objectAtIndex: index];
flag = [result boolValue];
[cell setEditable: flag];
}
if (_del_responds)
{
[_delegate tableView: self