mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-25 01:52:38 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4290 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
242d08a31c
commit
e9a42f58f9
1 changed files with 17 additions and 9 deletions
|
@ -63,20 +63,25 @@
|
||||||
id _destination = [destination nibInstantiate];
|
id _destination = [destination nibInstantiate];
|
||||||
SEL action = NSSelectorFromString (label);
|
SEL action = NSSelectorFromString (label);
|
||||||
|
|
||||||
if ([_source respondsToSelector:@selector(setTarget:)]) {
|
if ([_source respondsToSelector:@selector(setTarget:)])
|
||||||
|
{
|
||||||
// NSLog (@"%@: setting target to %@", _source, _destination);
|
// NSLog (@"%@: setting target to %@", _source, _destination);
|
||||||
[_source setTarget:_destination];
|
[_source setTarget:_destination];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
GSSetInstanceVariable (_source, @"target", (void*)[_destination retain]);
|
{
|
||||||
|
[_destination retain];
|
||||||
|
GSSetInstanceVariable (_source, @"target", &_destination);
|
||||||
|
}
|
||||||
|
|
||||||
if ([_source respondsToSelector:@selector(setAction:)]) {
|
if ([_source respondsToSelector:@selector(setAction:)])
|
||||||
|
{
|
||||||
// NSLog (@"%@: setting action to %@",
|
// NSLog (@"%@: setting action to %@",
|
||||||
// _source, NSStringFromSelector(action));
|
// _source, NSStringFromSelector(action));
|
||||||
[_source setAction:action];
|
[_source setAction:action];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
GSSetInstanceVariable (_source, @"action", (void*)action);
|
GSSetInstanceVariable (_source, @"action", &action);
|
||||||
}
|
}
|
||||||
|
|
||||||
@end /* IMControlConnector:IMConnector */
|
@end /* IMControlConnector:IMConnector */
|
||||||
|
@ -99,7 +104,10 @@
|
||||||
if (setSelector && [_source respondsToSelector:setSelector])
|
if (setSelector && [_source respondsToSelector:setSelector])
|
||||||
[_source performSelector:setSelector withObject:_destination];
|
[_source performSelector:setSelector withObject:_destination];
|
||||||
else
|
else
|
||||||
GSSetInstanceVariable(_source, label, (void*)[_destination retain]);
|
{
|
||||||
|
[_destination retain];
|
||||||
|
GSSetInstanceVariable(_source, label, &_destination);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@end /* IMOutletConnector */
|
@end /* IMOutletConnector */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue