mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-15 02:21:30 +00:00
* Source/NSData.m (-initWithCoder:, -encodeWithCoder): Correct
keyed encoding/decoding. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33932 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cbf54ac301
commit
2a419593ce
2 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2011-10-03 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSData.m (-initWithCoder:, -encodeWithCoder): Correct
|
||||||
|
keyed encoding/decoding.
|
||||||
|
|
||||||
2011-10-02 Richard Frith-Macdonald <rfm@gnu.org>
|
2011-10-02 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Headers/Foundation/NSFileManager.h
|
* Headers/Foundation/NSFileManager.h
|
||||||
|
|
|
@ -1268,7 +1268,7 @@ failure:
|
||||||
{
|
{
|
||||||
if ([coder allowsKeyedCoding])
|
if ([coder allowsKeyedCoding])
|
||||||
{
|
{
|
||||||
[coder encodeObject: self];
|
[coder encodeObject: self forKey: @"NS.bytes"];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1282,8 +1282,7 @@ failure:
|
||||||
|
|
||||||
if ([coder allowsKeyedCoding])
|
if ([coder allowsKeyedCoding])
|
||||||
{
|
{
|
||||||
// FIXME
|
obj = [coder decodeObjectForKey: @"NS.bytes"];
|
||||||
obj = [coder decodeObject];
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue