mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Fix for save panel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4286 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1062149904
commit
9fd15ef1c4
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Yue May 25 3:55:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/Model/GMArchiver.m: Fix for save panels by Jonathan Gapen.
|
||||
|
||||
1999-05-18 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Headers/gnustep/gui/DPSOperators: New graphics extensions
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSData.h>
|
||||
#import <Foundation/NSDebug.h>
|
||||
#import <Foundation/NSObjCRuntime.h>
|
||||
#import <Foundation/NSEnumerator.h>
|
||||
#import <Foundation/NSScanner.h>
|
||||
|
@ -645,6 +646,7 @@ static NSMutableDictionary* classToAliasMappings = nil;
|
|||
BOOL objectOnTopLevel = NO;
|
||||
id newObject;
|
||||
Class class;
|
||||
NSString* decodeAsName;
|
||||
|
||||
if (!name)
|
||||
return nil;
|
||||
|
@ -715,6 +717,12 @@ static NSMutableDictionary* classToAliasMappings = nil;
|
|||
|
||||
/* Create the object */
|
||||
className = [representation objectForKey:@"isa"];
|
||||
decodeAsName = [classToAliasMappings objectForKey:className];
|
||||
if( decodeAsName )
|
||||
{
|
||||
NSDebugLLog(@"GMArchiver", @"%@ to be decoded as %@", className, decodeAsName);
|
||||
className = decodeAsName;
|
||||
}
|
||||
class = NSClassFromString(className);
|
||||
object = [class createObjectForModelUnarchiver:self];
|
||||
|
||||
|
|
Loading…
Reference in a new issue