Fixed serios bug that affected establishing connections. Support for NSBox.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2697 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ovidiu 1998-01-14 23:03:44 +00:00
parent 70f73da4bd
commit 45741ba6e9
3 changed files with 76 additions and 18 deletions

View file

@ -117,10 +117,14 @@ object_set_instance_variable (id anObject,
{
id _source = [source nibInstantiate];
id _destination = [destination nibInstantiate];
NSString* setMethodName = [@"set" stringByAppendingString:
[label capitalizedString]];
NSString* setMethodName = [[@"set" stringByAppendingString:
[label capitalizedString]]
stringByAppendingString:@":"];
SEL setSelector = NSSelectorFromString (setMethodName);
// NSLog (@"establish connection: source %@, destination %@, label %@",
// _source, _destination, label);
if (setSelector && [_source respondsToSelector:setSelector])
[_source performSelector:setSelector withObject:_destination];
else