~ubuntu-branches/ubuntu/trusty/gnustep-base/trusty

« back to all changes in this revision

Viewing changes to Source/NSValueTransformer.m

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung
  • Date: 2012-11-21 13:56:22 UTC
  • mfrom: (8.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20121121135622-1w035dpxneardw8q
Tags: 1.24.0-1ubuntu1
Backport upstream fix for recent libxml2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#import "Foundation/NSData.h"
30
30
#import "Foundation/NSDictionary.h"
31
31
#import "Foundation/NSException.h"
32
 
#import "Foundation/NSKeyedArchiver.h"
 
32
#import "Foundation/NSArchiver.h"
33
33
#import "Foundation/NSValue.h"
34
34
#import "Foundation/NSValueTransformer.h"
35
35
#import "GNUstepBase/NSObject+GNUstepBase.h"
222
222
 
223
223
- (id) reverseTransformedValue: (id)value
224
224
{
225
 
// FIXME ... should we use a keyed archive?
226
 
  return [NSKeyedArchiver archivedDataWithRootObject: value];
 
225
  return [NSArchiver archivedDataWithRootObject: value];
227
226
}
228
227
 
229
228
- (id) transformedValue: (id)value
230
229
{
231
 
// FIXME ... should we use a keyed archive?
232
 
  return [NSKeyedUnarchiver unarchiveObjectWithData: value];
 
230
  return [NSUnarchiver unarchiveObjectWithData: value];
233
231
}
234
232
 
235
233
@end