mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Bugfix for getting method sig from remote
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6605 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
64235f4fa4
commit
b1d9afdbfa
2 changed files with 20 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
2000-05-21 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSDistantObject.m: ([-methodSignatureForSelector:])
|
||||
Re-fix attempting to handle creation of local method signature rather
|
||||
than returning a proxy to a remote one. Dumb error in first attempt.
|
||||
|
||||
2000-05-10 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* NSBundle.m (-classNamed:): Hacks for getting classes from
|
||||
|
|
|
@ -575,10 +575,7 @@ enum
|
|||
{
|
||||
if (_object != nil)
|
||||
{
|
||||
NSMethodSignature *m = [_object methodSignatureForSelector: aSelector];
|
||||
const char *types = [m methodType];
|
||||
|
||||
return [NSMethodSignature signatureWithObjCTypes: types];
|
||||
return [_object methodSignatureForSelector: aSelector];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -605,13 +602,25 @@ enum
|
|||
}
|
||||
else
|
||||
{
|
||||
id m;
|
||||
const char *types;
|
||||
arglist_t args;
|
||||
void *retframe;
|
||||
|
||||
id retframe_id (void *rframe)
|
||||
{
|
||||
__builtin_return (rframe);
|
||||
}
|
||||
|
||||
/*
|
||||
* No protocol - so try forwarding the message.
|
||||
*/
|
||||
args = __builtin_apply_args();
|
||||
__builtin_return([self forward: _cmd : args]);
|
||||
retframe = [self forward: _cmd : args];
|
||||
m = retframe_id(retframe);
|
||||
types = [m methodType];
|
||||
|
||||
return [NSMethodSignature signatureWithObjCTypes: types];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue