mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Improvements, per discussion with @fredkiefer
This commit is contained in:
parent
f55d937ab2
commit
3d59afd2c9
3 changed files with 5 additions and 6 deletions
|
@ -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];
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue