Improvements, per discussion with @fredkiefer

This commit is contained in:
Gregory John Casamento 2024-07-27 17:37:04 -04:00
parent f55d937ab2
commit 3d59afd2c9
3 changed files with 5 additions and 6 deletions

View file

@ -192,12 +192,11 @@ void GSBindingInvokeAction(NSString *targetKey, NSString *argumentKey,
if (!objectTable)
return nil;
// NSLog(@"+++ called with %@, %@", binding, anObject);
// [self _printObjectTable];
NSDebugLog(@"+++ called with %@, %@", binding, anObject);
[bindingLock lock];
bindings = (NSMutableDictionary *)NSMapGet(objectTable, (void *)anObject);
// NSLog(@"+++ Bindings found for %@ => %@", anObject, bindings);
NSDebugLog(@"+++ Bindings found for %@ => %@", anObject, bindings);
if (bindings != nil)
{
theBinding = (GSKeyValueBinding*)[bindings objectForKey: binding];

View file

@ -2278,7 +2278,6 @@ Also returns the child index relative to this parent. */
id object;
id sitem = (item == nil) ? (id)[NSNull null] : (id)item;
// NSLog(@"openItem: %@", item);
// open the item...
if (item != nil)
{

View file

@ -3310,7 +3310,6 @@ byExtendingSelection: (BOOL)flag
NSString *string;
id newObjectValue = nil;
BOOL validatedOK = YES;
GSKeyValueBinding *theBinding = nil;
// Avoid potential recursive sequences...
_isValidating = YES;
@ -3327,6 +3326,7 @@ byExtendingSelection: (BOOL)flag
errorDescription: &error] == YES)
{
NSTableColumn *tb;
GSKeyValueBinding *theBinding = nil;
[_editedCell setObjectValue: newObjectValue];
tb = [_tableColumns objectAtIndex: _editedColumn];
@ -3366,6 +3366,7 @@ byExtendingSelection: (BOOL)flag
if (validatedOK)
{
NSTableColumn *tb;
GSKeyValueBinding *theBinding = nil;
[_editedCell setStringValue: string];
tb = [_tableColumns objectAtIndex: _editedColumn];