mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
e7394a8320
commit
fde00710f6
2 changed files with 17 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue