mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Some minor formatting changes.
([NSObject -classForArchiver]): Method removed; it's in NSArchiver.m. ([NSObject -replacementObjectForArchiver:]): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@844 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fef5cf6e1c
commit
3cdb041057
1 changed files with 7 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* Implementation of NSObject for GNUStep
|
/* Implementation of NSObject for GNUStep
|
||||||
Copyright (C) 1994, 1995 Free Software Foundation, Inc.
|
Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
|
||||||
|
|
||||||
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
||||||
Date: August 1994
|
Date: August 1994
|
||||||
|
@ -109,7 +109,7 @@ BOOL NSDecrementExtraRefCountWasZero(id anObject)
|
||||||
|
|
||||||
+ (id) allocWithZone: (NSZone*)z
|
+ (id) allocWithZone: (NSZone*)z
|
||||||
{
|
{
|
||||||
return NSAllocateObject(self, 0, z);
|
return NSAllocateObject (self, 0, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (id) new
|
+ (id) new
|
||||||
|
@ -119,7 +119,7 @@ BOOL NSDecrementExtraRefCountWasZero(id anObject)
|
||||||
|
|
||||||
- copyWithZone:(NSZone *)zone;
|
- copyWithZone:(NSZone *)zone;
|
||||||
{
|
{
|
||||||
return NSCopyObject(self, 0, zone);
|
return NSCopyObject (self, 0, zone);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) copy
|
- (id) copy
|
||||||
|
@ -129,7 +129,7 @@ BOOL NSDecrementExtraRefCountWasZero(id anObject)
|
||||||
|
|
||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
NSDeallocateObject(self);
|
NSDeallocateObject (self);
|
||||||
}
|
}
|
||||||
|
|
||||||
- free
|
- free
|
||||||
|
@ -155,12 +155,12 @@ BOOL NSDecrementExtraRefCountWasZero(id anObject)
|
||||||
|
|
||||||
+ (Class) superclass
|
+ (Class) superclass
|
||||||
{
|
{
|
||||||
return class_get_super_class(self);
|
return class_get_super_class (self);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (Class) superclass
|
- (Class) superclass
|
||||||
{
|
{
|
||||||
return object_get_super_class(self);
|
return object_get_super_class (self);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (BOOL) instancesRespondToSelector: (SEL)aSelector
|
+ (BOOL) instancesRespondToSelector: (SEL)aSelector
|
||||||
|
@ -264,11 +264,6 @@ BOOL NSDecrementExtraRefCountWasZero(id anObject)
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (Class) classForArchiver
|
|
||||||
{
|
|
||||||
return [self classForCoder];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (Class) classForCoder
|
- (Class) classForCoder
|
||||||
{
|
{
|
||||||
return [self class];
|
return [self class];
|
||||||
|
@ -279,11 +274,7 @@ BOOL NSDecrementExtraRefCountWasZero(id anObject)
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) replacementObjectForArchiveer: (NSArchiver*)anArchiver
|
|
||||||
{
|
|
||||||
return [self replacementObjectForCoder:(NSCoder*)anArchiver];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* NSObject protocol */
|
/* NSObject protocol */
|
||||||
|
|
||||||
- autorelease
|
- autorelease
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue