Quick hack for setting ivars.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15158 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-11-27 21:39:48 +00:00
parent a0400492c5
commit edbec32936
2 changed files with 17 additions and 5 deletions

View file

@ -1,3 +1,7 @@
2002-11-27 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSBundleAdditions.m: Quick hack for setting ivars.
2002-11-27 Adam Fedor <fedor@gnu.org> 2002-11-27 Adam Fedor <fedor@gnu.org>
* Source/NSTabView.m ([NSTabView -selectedTabViewItem]): Check * Source/NSTabView.m ([NSTabView -selectedTabViewItem]): Check

View file

@ -172,13 +172,21 @@ static const int currentVersion = 1;
} }
else else
{ {
const char *nam = [_tag cString];
const char *type;
unsigned int size;
unsigned int offset;
/* /*
* Use the GNUstep additional function to set the instance variable * Use the GNUstep additional function to set the instance
* directly. * variable directly.
* FIXME - need some way to do this for libFoundation and Foundation * FIXME - need some way to do this for libFoundation and
* based systems. * Foundation based systems.
*/ */
GSSetInstanceVariable(_src, _tag, (void*)&_dst); if (GSObjCFindInstanceVariable(_src, nam, &type, &size, &offset))
{
GSObjCSetVariable(_src, offset, size, (void*)&_dst);
}
} }
} }
} }