mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 22:00:46 +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
a0400492c5
commit
edbec32936
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>
|
2002-11-27 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* Source/NSTabView.m ([NSTabView -selectedTabViewItem]): Check
|
* Source/NSTabView.m ([NSTabView -selectedTabViewItem]): Check
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue