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