Two small bug fixes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25748 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2007-12-15 14:36:28 +00:00
parent 0b14647109
commit c3c507203b
3 changed files with 14 additions and 7 deletions

View file

@ -975,12 +975,14 @@ static NSNotificationCenter *nc;
if ([binding isEqual: NSValueBinding])
{
[self unbind: binding];
[[GSKeyValueOrBinding alloc] initWithBinding: @"objectValue"
withName: NSValueBinding
toObject: anObject
withKeyPath: keyPath
options: options
fromObject: self];
// FIXME: We could also do the mapping via
// setKeys:triggerChangeNotificationsForDependentKey:
[[GSKeyValueBinding alloc] initWithBinding: @"objectValue"
withName: NSValueBinding
toObject: anObject
withKeyPath: keyPath
options: options
fromObject: self];
}
else if ([binding hasPrefix: NSEnabledBinding])
{