Fixed typos, and implemented many methods to call behavior methods.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@366 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1995-04-15 19:42:36 +00:00
parent 8c44818294
commit 5536bc56b3

View file

@ -21,12 +21,12 @@
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include <foundation/NSConcreteArray.h> #include <foundation/NSGCoder.h>
#include <objects/NSCoder.h> #include <objects/NSCoder.h>
#include <objects/behavior.h> #include <objects/behavior.h>
#include <objects/Coder.h> #include <objects/Coder.h>
@implementation NSGNUCoder @implementation NSGCoder
+ (void) initialize + (void) initialize
{ {
@ -51,29 +51,32 @@
- (void) encodeValueOfObjCType: (const char*)type - (void) encodeValueOfObjCType: (const char*)type
at: (const void*)address; at: (const void*)address;
{ {
[self notImplemented:_cmd]; [self encodeValueOfType:type at:address
withName:NULL];
} }
- (void) encodeObject: (id)anObject; - (void) encodeObject: (id)anObject;
{ {
[self encodeObject:anObject [self encodeObject:anObject
withName:""]; withName:NULL];
} }
- (void) encodeConditionalObject: (id)anObject; - (void) encodeConditionalObject: (id)anObject;
{ {
[self encodeObjectReference:anObject [self encodeObjectReference:anObject
withName:""]; withName:NULL];
} }
- (void) encodeBycopyObject: (id)anObject; - (void) encodeBycopyObject: (id)anObject;
{ {
[self encodeObject:anObject]; [self encodeObjectBycopy:anObject
withName:NULL];
} }
- (void) encodeRootObject: (id)rootObject; - (void) encodeRootObject: (id)rootObject;
{ {
[self encodeObject]; [self encodeRootObject:rootObject
withName:NULL];
} }
@ -82,13 +85,18 @@
- (void) decodeValueOfObjCType: (const char*)type - (void) decodeValueOfObjCType: (const char*)type
at: (void*)address at: (void*)address
{ {
[self notImplemented:_cmd]; [self decodeValueOfType:type at:address
withName:NULL];
} }
- (id) decodeObject; - (id) decodeObject;
{ {
[self notImplemented:_cmd]; id o;
return nil; /* xxx Warning!!! this won't work with encoded object references!
We need to fix this! (But how?) */
[self decodeObjectAt:&o
withName:NULL];
return o;
} }
// Managing Zones // Managing Zones