mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
* Source/NSBundleAdditions.m (NSNibOutletConnector
-establishConnection): Undo the last change to this method, as it should not retain the assign value. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29923 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cdf59d5e96
commit
f159a71c85
2 changed files with 36 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-03-13 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSBundleAdditions.m (NSNibOutletConnector
|
||||
-establishConnection): Undo the last change to this method, as
|
||||
it should not retain the assign value.
|
||||
|
||||
2005-03-12 Doug Simons <doug.simons@testplant.com>
|
||||
|
||||
* Source/NSTextView.m: (-readSelectionFromPasteboard:type:):
|
||||
|
|
|
@ -183,7 +183,36 @@
|
|||
{
|
||||
if (_src != nil)
|
||||
{
|
||||
[_src setValue: _dst forKey: _tag];
|
||||
NSString *selName;
|
||||
SEL sel;
|
||||
|
||||
selName = [NSString stringWithFormat: @"set%@%@:",
|
||||
[[_tag substringToIndex: 1] uppercaseString],
|
||||
[_tag substringFromIndex: 1]];
|
||||
sel = NSSelectorFromString(selName);
|
||||
|
||||
if (sel && [_src respondsToSelector: sel])
|
||||
{
|
||||
[_src performSelector: sel withObject: _dst];
|
||||
}
|
||||
else
|
||||
{
|
||||
const char *nam = [_tag cString];
|
||||
const char *type;
|
||||
unsigned int size;
|
||||
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.
|
||||
*/
|
||||
if (GSObjCFindVariable(_src, nam, &type, &size, &offset))
|
||||
{
|
||||
GSObjCSetVariable(_src, offset, size, (void*)&_dst);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
NS_HANDLER
|
||||
|
|
Loading…
Reference in a new issue