mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Implemented methodForSelector:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7477 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5f729a8d49
commit
96dd9936fe
2 changed files with 15 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
|||
local server connection - create new connection to it if necessary.
|
||||
([-rootProxy]) return root object if sent to server connection.
|
||||
Also added some more debug statements.
|
||||
* Source/NSDistantObject.m: ([-methodForSelector:]) implemented to
|
||||
(hopefully) fix problem in pasteboard stuff.
|
||||
|
||||
2000-09-11 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include <config.h>
|
||||
#include <base/preface.h>
|
||||
#include <base/fast.x>
|
||||
#include <Foundation/DistributedObjects.h>
|
||||
#include <Foundation/NSLock.h>
|
||||
#include <Foundation/NSPort.h>
|
||||
|
@ -38,6 +39,13 @@ typedef struct {
|
|||
@defs(NSDistantObject)
|
||||
} NSDO;
|
||||
|
||||
@interface NSConnection (DistantObjectHacks)
|
||||
- (BOOL) includesProxyForTarget: (unsigned)target;
|
||||
- (void) addLocalObject: (id)obj;
|
||||
- (void) addProxy: (id)obj;
|
||||
- (void) removeProxy: (id)obj;
|
||||
@end
|
||||
|
||||
/* This is the proxy tag; it indicates where the local object is,
|
||||
and determines whether the reply port to the Connection-where-the-
|
||||
proxy-is-local needs to encoded/decoded or not. */
|
||||
|
@ -726,6 +734,11 @@ enum
|
|||
return self;
|
||||
}
|
||||
|
||||
- (IMP) methodForSelector: (SEL)aSelector
|
||||
{
|
||||
return get_imp(fastClass((id)self), aSelector);
|
||||
}
|
||||
|
||||
- (NSMethodSignature*) methodSignatureForSelector: (SEL)aSelector
|
||||
{
|
||||
if (_object != nil)
|
||||
|
|
Loading…
Reference in a new issue