mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 22:37:39 +00:00
Several changes to support porting of an OPENSTEP application to GNUstep.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2689 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
298d5644e0
commit
83942f9a80
26 changed files with 365 additions and 29 deletions
|
@ -54,7 +54,7 @@ object_set_instance_variable (id anObject,
|
|||
|
||||
if (ivar.ivar_name && !strcmp (ivar.ivar_name, variableName)) {
|
||||
/* We found it! */
|
||||
*((id*)(((char*)anObject) + ivar.ivar_offset)) = value;
|
||||
*((void**)(((char*)anObject) + ivar.ivar_offset)) = value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ object_set_instance_variable (id anObject,
|
|||
[_source setTarget:_destination];
|
||||
}
|
||||
else
|
||||
object_set_instance_variable (_source, "target", _destination);
|
||||
object_set_instance_variable (_source, "target", [_destination retain]);
|
||||
|
||||
if ([_source respondsToSelector:@selector(setAction:)]) {
|
||||
// NSLog (@"%@: setting action to %@",
|
||||
|
@ -124,7 +124,7 @@ object_set_instance_variable (id anObject,
|
|||
if (setSelector && [_source respondsToSelector:setSelector])
|
||||
[_source performSelector:setSelector withObject:_destination];
|
||||
else
|
||||
object_set_instance_variable(_source, [label cString], _destination);
|
||||
object_set_instance_variable(_source, [label cString], [_destination retain]);
|
||||
}
|
||||
|
||||
@end /* IMOutletConnector */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue