mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-11 16:50:42 +00:00
Allow easy user-modification of concrete class.
([NSUnarchiver +_setConcreteClass:]): New method. ([NSUnarchiver +_concreteClass]): New method. ([NSUnarchiver +initialize]): New method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@491 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
adf8c49d78
commit
b514c52abf
1 changed files with 17 additions and 0 deletions
|
@ -25,6 +25,23 @@
|
|||
|
||||
@implementation NSUnarchiver
|
||||
|
||||
static Class NSUnarchiver_concrete_class;
|
||||
|
||||
+ (void) _setConcreteClass: (Class)c
|
||||
{
|
||||
NSUnarchiver_concrete_class = c;
|
||||
}
|
||||
|
||||
+ (Class) _concreteClass
|
||||
{
|
||||
return NSUnarchiver_concrete_class;
|
||||
}
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
// NSUnarchiver_concrete_class = [NSGUnarchiver class];
|
||||
}
|
||||
|
||||
// Initializing an unarchiver
|
||||
|
||||
- (id) initForReadingWithData: (NSData*)data
|
||||
|
|
Loading…
Reference in a new issue