mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Inore observer calls with empty change information.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26168 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
17a313d007
commit
c05373d580
2 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-03-01 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSKeyValueBinding.m
|
||||
(-observeValueForKeyPath:ofObject:change:context:): Ignore calls
|
||||
with empty change information.
|
||||
|
||||
2008-03-01 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||
|
||||
* Source/NSImageCell.m (scaleProportionally): Fixed
|
||||
|
|
|
@ -354,10 +354,13 @@ void GSBindingInvokeAction(NSString *targetKey, NSString *argumentKey,
|
|||
NSDictionary *options;
|
||||
id newValue;
|
||||
|
||||
options = [info objectForKey: NSOptionsKey];
|
||||
newValue = [change objectForKey: NSKeyValueChangeNewKey];
|
||||
newValue = [self transformValue: newValue withOptions: options];
|
||||
[src setValue: newValue forKey: binding];
|
||||
if (change != nil)
|
||||
{
|
||||
options = [info objectForKey: NSOptionsKey];
|
||||
newValue = [change objectForKey: NSKeyValueChangeNewKey];
|
||||
newValue = [self transformValue: newValue withOptions: options];
|
||||
[src setValue: newValue forKey: binding];
|
||||
}
|
||||
}
|
||||
|
||||
- (id) transformValue: (id)value withOptions: (NSDictionary *)options
|
||||
|
|
Loading…
Reference in a new issue