mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 09:31:07 +00:00
Fix for #21133
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25514 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e5379ee993
commit
60f5134a22
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-10-03 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSData.m: Fix ([-classForCoder:]) to return base class of
|
||||||
|
cluster (bug #21133)
|
||||||
|
|
||||||
2007-09-25 Richard Frith-Macdonald <rfm@gnu.org>
|
2007-09-25 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/Additions/GSMime.m: Decode headers as latin1 by default if
|
* Source/Additions/GSMime.m: Decode headers as latin1 by default if
|
||||||
|
|
|
@ -1509,7 +1509,7 @@ failure:
|
||||||
|
|
||||||
- (void) encodeWithCoder: (NSCoder*)coder
|
- (void) encodeWithCoder: (NSCoder*)coder
|
||||||
{
|
{
|
||||||
if([coder allowsKeyedCoding])
|
if ([coder allowsKeyedCoding])
|
||||||
{
|
{
|
||||||
[coder encodeObject: self];
|
[coder encodeObject: self];
|
||||||
}
|
}
|
||||||
|
@ -1523,7 +1523,7 @@ failure:
|
||||||
{
|
{
|
||||||
id obj = nil;
|
id obj = nil;
|
||||||
|
|
||||||
if([coder allowsKeyedCoding])
|
if ([coder allowsKeyedCoding])
|
||||||
{
|
{
|
||||||
obj = [coder decodeObject];
|
obj = [coder decodeObject];
|
||||||
}
|
}
|
||||||
|
@ -2434,7 +2434,7 @@ failure:
|
||||||
|
|
||||||
- (Class) classForCoder
|
- (Class) classForCoder
|
||||||
{
|
{
|
||||||
return dataMalloc; /* Will not be static data when decoded. */
|
return NSDataAbstract;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Basic methods */
|
/* Basic methods */
|
||||||
|
@ -3070,7 +3070,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
|
||||||
|
|
||||||
- (Class) classForCoder
|
- (Class) classForCoder
|
||||||
{
|
{
|
||||||
return mutableDataMalloc;
|
return NSMutableDataAbstract;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) copy
|
- (id) copy
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue