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:
Ovidiu Predescu 1998-01-09 22:28:14 +00:00
parent 298d5644e0
commit 83942f9a80
26 changed files with 365 additions and 29 deletions

View file

@ -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 */