Class cluster and encoding/decoding fixes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7825 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 2000-10-16 12:35:42 +00:00
parent 1770f4dc78
commit 65241c052d
12 changed files with 276 additions and 178 deletions

View file

@ -1913,23 +1913,11 @@ failure:
return self;
}
/* NSCoding */
- (Class) classForArchiver
{
return dataMalloc; /* Will not be static data when decoded. */
}
- (Class) classForCoder
{
return dataMalloc; /* Will not be static data when decoded. */
}
- (Class) classForPortCoder
{
return dataMalloc; /* Will not be static data when decoded. */
}
/* Basic methods */
- (const void*) bytes
@ -2510,21 +2498,11 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
return (NSData*)NSAllocateObject(mutableDataMalloc, 0, z);
}
- (Class) classForArchiver
{
return mutableDataMalloc;
}
- (Class) classForCoder
{
return mutableDataMalloc;
}
- (Class) classForPortCoder
{
return mutableDataMalloc;
}
- (id) copy
{
return [[dataMalloc allocWithZone: NSDefaultMallocZone()]