Remove both instances where we get properties from the binding where it is not needed during the loading process, per discussion with @fredkiefer

This commit is contained in:
Gregory John Casamento 2024-08-08 18:20:00 -04:00
parent 854af0901e
commit 5d9e49a2ff

View file

@ -3326,16 +3326,11 @@ byExtendingSelection: (BOOL)flag
errorDescription: &error] == YES)
{
NSTableColumn *tb;
GSKeyValueBinding *theBinding = nil;
[_editedCell setObjectValue: newObjectValue];
tb = [_tableColumns objectAtIndex: _editedColumn];
theBinding = [GSKeyValueBinding getBinding: NSValueBinding
forObject: tb];
if (_dataSource_editable
|| theBinding != nil)
if (_dataSource_editable)
{
[self _setObjectValue: newObjectValue
forTableColumn: tb
@ -3366,18 +3361,13 @@ byExtendingSelection: (BOOL)flag
if (validatedOK)
{
NSTableColumn *tb;
GSKeyValueBinding *theBinding = nil;
[_editedCell setStringValue: string];
tb = [_tableColumns objectAtIndex: _editedColumn];
theBinding = [GSKeyValueBinding getBinding: NSValueBinding
forObject: tb];
if (_dataSource_editable
|| theBinding != nil)
if (_dataSource_editable)
{
[self _setObjectValue: string // newObjectValue
[self _setObjectValue: string
forTableColumn: tb
row: _editedRow];
}