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:
Richard Frith-Macdonald 2002-11-27 21:39:48 +00:00
parent e7394a8320
commit fde00710f6
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>
* Source/NSTabView.m ([NSTabView -selectedTabViewItem]): Check

View file

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