mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
6efa3c983e
commit
bc796f4304
2 changed files with 9 additions and 5 deletions
|
@ -1268,7 +1268,7 @@ failure:
|
|||
{
|
||||
if ([coder allowsKeyedCoding])
|
||||
{
|
||||
[coder encodeObject: self];
|
||||
[coder encodeObject: self forKey: @"NS.bytes"];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1278,12 +1278,11 @@ failure:
|
|||
|
||||
- (id) initWithCoder: (NSCoder*)coder
|
||||
{
|
||||
id obj = nil;
|
||||
id obj = nil;
|
||||
|
||||
if ([coder allowsKeyedCoding])
|
||||
{
|
||||
// FIXME
|
||||
obj = [coder decodeObject];
|
||||
obj = [coder decodeObjectForKey: @"NS.bytes"];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue