mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(class): Fix return value.
(encodeWithCoder:) #ifdef out for now, until we fix compatibility with GNU Coder. (perform:with:): New method in NEXTSTEP category. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@169 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
781b36616e
commit
53c421b413
1 changed files with 10 additions and 4 deletions
|
@ -24,8 +24,8 @@
|
|||
#include <objects/stdobjects.h>
|
||||
#include <stdarg.h>
|
||||
#include <foundation/NSObject.h>
|
||||
#include "objc/Protocol.h"
|
||||
#include "objc/objc-api.h"
|
||||
#include <objc/Protocol.h>
|
||||
#include <objc/objc-api.h>
|
||||
#include <foundation/NSMethodSignature.h>
|
||||
// #include <foundation/NSArchiver.h>
|
||||
// #include <foundation/NSCoder.h>
|
||||
|
@ -278,7 +278,7 @@ BOOL NSDecrementExtraRefCountWasZero(id anObject)
|
|||
|
||||
- (Class) class
|
||||
{
|
||||
return isa;
|
||||
return object_get_class(self);
|
||||
}
|
||||
|
||||
- (unsigned) hash
|
||||
|
@ -376,10 +376,12 @@ BOOL NSDecrementExtraRefCountWasZero(id anObject)
|
|||
return NSZoneFromPtr(self);
|
||||
}
|
||||
|
||||
#if 0 /* waiting until I resolve type conflict with GNU Coding method */
|
||||
- (void)encodeWithCoder:(NSCoder *)aCoder
|
||||
{
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
- initWithCoder:(NSCoder *)aDecoder
|
||||
{
|
||||
|
@ -482,6 +484,11 @@ BOOL NSDecrementExtraRefCountWasZero(id anObject)
|
|||
object_get_class_name(self), sel_get_name(aSel)];
|
||||
}
|
||||
|
||||
- perform: (SEL)sel with: anObject
|
||||
{
|
||||
return [self perform:sel withObject:anObject];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSObject (GNU)
|
||||
|
@ -603,4 +610,3 @@ BOOL NSDecrementExtraRefCountWasZero(id anObject)
|
|||
}
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in a new issue