mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 10:20:48 +00:00
* Source/NSControl.m (-textDidChange:): If there is a binding with
continious update, pass on the changed text. * Source/GSXibElement.m: Correct the handling of boolean values in attributes. * Source/GSBindingHelpers.h, * Source/NSKeyValueBinding.m: Prevent recursion when reverseSetValue: is used. * Source/NSTextField.m (-textDidChange:): Remove empty code line.
This commit is contained in:
parent
b8b4d7c2f0
commit
0576f2736b
6 changed files with 36 additions and 1 deletions
|
@ -361,7 +361,9 @@ void GSBindingInvokeAction(NSString *targetKey, NSString *argumentKey,
|
|||
keyPath = [info objectForKey: NSObservedKeyPathKey];
|
||||
dest = [info objectForKey: NSObservedObjectKey];
|
||||
NSDebugLLog(@"NSBinding", @"reverseSetValue: keyPath %@, dest %@ value %@", keyPath, dest, value);
|
||||
inReverseSet = YES;
|
||||
[dest setValue: value forKeyPath: keyPath];
|
||||
inReverseSet = NO;
|
||||
}
|
||||
|
||||
- (void) reverseSetValueFor: (NSString *)binding
|
||||
|
@ -378,6 +380,11 @@ void GSBindingInvokeAction(NSString *targetKey, NSString *argumentKey,
|
|||
NSDictionary *options;
|
||||
id newValue;
|
||||
|
||||
if (inReverseSet)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (change != nil)
|
||||
{
|
||||
options = [info objectForKey: NSOptionsKey];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue