mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(zone): New method.
(isProxy): Remove method from NSObject category. Don't include objects/AutoreleasePool.h. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@168 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
14870dfae1
commit
781b36616e
1 changed files with 7 additions and 12 deletions
|
@ -28,7 +28,6 @@
|
|||
#include <objects/Connection.h>
|
||||
#include <objects/ConnectedCoder.h>
|
||||
#include <objects/eltfuncs.h>
|
||||
#include <objects/AutoreleasePool.h>
|
||||
#include <assert.h>
|
||||
|
||||
static BOOL debugProxies = NO;
|
||||
|
@ -317,7 +316,7 @@ static inline BOOL class_is_kind_of(Class self, Class aClassObject)
|
|||
coll_hash_delete(_method_types);
|
||||
object_dispose((Object*)self);
|
||||
#else
|
||||
NSDeallocateObject(self);
|
||||
NSDeallocateObject((id)self);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -343,9 +342,14 @@ static inline BOOL class_is_kind_of(Class self, Class aClassObject)
|
|||
return self;
|
||||
}
|
||||
|
||||
- (NSZone*) zone
|
||||
{
|
||||
return NULL; /* xxx Fix this. */
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation Object (ForProxy)
|
||||
@implementation NSObject (ForProxy)
|
||||
- (const char *) selectorTypeForProxy: (SEL)selector
|
||||
{
|
||||
#if NeXT_runtime
|
||||
|
@ -362,15 +366,6 @@ static inline BOOL class_is_kind_of(Class self, Class aClassObject)
|
|||
}
|
||||
@end
|
||||
|
||||
#if 0 /* temporarily moved to Coder.m */
|
||||
@implementation Object (IsProxy)
|
||||
- (BOOL) isProxy
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
@end
|
||||
#endif
|
||||
|
||||
@implementation Protocol (RemoteCoding)
|
||||
|
||||
/* Perhaps Protocol's should be sent bycopy? */
|
||||
|
|
Loading…
Reference in a new issue