mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:20:38 +00:00
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:
parent
0b14647109
commit
c3c507203b
3 changed files with 14 additions and 7 deletions
|
@ -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])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue