mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 18:50:48 +00:00
Swap destination and source in NIB binding connector.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25727 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c34c7d0572
commit
d7f51905fc
3 changed files with 15 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2007-12-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSNibBindingConnector.m (-establishConnection): Swap
|
||||||
|
destination and source.
|
||||||
|
* Source/NSKeyValueBinding.m: Started rework.
|
||||||
|
|
||||||
2007-12-12 Fred Kiefer <FredKiefer@gmx.de>
|
2007-12-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSKeyValueBinding.m (GSBindingUnbindAll): Return if table
|
* Source/NSKeyValueBinding.m (GSBindingUnbindAll): Return if table
|
||||||
|
|
|
@ -167,7 +167,9 @@ static inline void setup()
|
||||||
id observedObject;
|
id observedObject;
|
||||||
NSString *keyPath;
|
NSString *keyPath;
|
||||||
|
|
||||||
setup();
|
if (!objectTable)
|
||||||
|
return;
|
||||||
|
|
||||||
[bindingLock lock];
|
[bindingLock lock];
|
||||||
bindings = (NSMutableDictionary *)NSMapGet(objectTable, (void *)self);
|
bindings = (NSMutableDictionary *)NSMapGet(objectTable, (void *)self);
|
||||||
if (bindings != nil)
|
if (bindings != nil)
|
||||||
|
@ -184,6 +186,10 @@ static inline void setup()
|
||||||
[bindingLock unlock];
|
[bindingLock unlock];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: This method should not be defined on this class, as it make all
|
||||||
|
// other value observation impossible. Better add a new GSBinding class
|
||||||
|
// to handle this. Perhaps with plenty of specific subclasses for the
|
||||||
|
// different special cases?
|
||||||
- (void) observeValueForKeyPath: (NSString *)keyPath
|
- (void) observeValueForKeyPath: (NSString *)keyPath
|
||||||
ofObject: (id)object
|
ofObject: (id)object
|
||||||
change: (NSDictionary *)change
|
change: (NSDictionary *)change
|
||||||
|
|
|
@ -94,8 +94,8 @@
|
||||||
|
|
||||||
- (void) establishConnection
|
- (void) establishConnection
|
||||||
{
|
{
|
||||||
[_dst bind: _binding
|
[_src bind: _binding
|
||||||
toObject: _src
|
toObject: _dst
|
||||||
withKeyPath: _keyPath
|
withKeyPath: _keyPath
|
||||||
options: _options];
|
options: _options];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue