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:
fredkiefer 2008-03-01 20:34:38 +00:00
parent 2102dc4106
commit 6e69dd5bb2
2 changed files with 13 additions and 4 deletions

View file

@ -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