mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 23:50:49 +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
95f1109ae7
commit
a98ff164f1
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>
|
1999-05-18 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* Headers/gnustep/gui/DPSOperators: New graphics extensions
|
* Headers/gnustep/gui/DPSOperators: New graphics extensions
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#import <Foundation/NSArray.h>
|
#import <Foundation/NSArray.h>
|
||||||
#import <Foundation/NSDictionary.h>
|
#import <Foundation/NSDictionary.h>
|
||||||
#import <Foundation/NSData.h>
|
#import <Foundation/NSData.h>
|
||||||
|
#import <Foundation/NSDebug.h>
|
||||||
#import <Foundation/NSObjCRuntime.h>
|
#import <Foundation/NSObjCRuntime.h>
|
||||||
#import <Foundation/NSEnumerator.h>
|
#import <Foundation/NSEnumerator.h>
|
||||||
#import <Foundation/NSScanner.h>
|
#import <Foundation/NSScanner.h>
|
||||||
|
@ -645,6 +646,7 @@ static NSMutableDictionary* classToAliasMappings = nil;
|
||||||
BOOL objectOnTopLevel = NO;
|
BOOL objectOnTopLevel = NO;
|
||||||
id newObject;
|
id newObject;
|
||||||
Class class;
|
Class class;
|
||||||
|
NSString* decodeAsName;
|
||||||
|
|
||||||
if (!name)
|
if (!name)
|
||||||
return nil;
|
return nil;
|
||||||
|
@ -715,6 +717,12 @@ static NSMutableDictionary* classToAliasMappings = nil;
|
||||||
|
|
||||||
/* Create the object */
|
/* Create the object */
|
||||||
className = [representation objectForKey:@"isa"];
|
className = [representation objectForKey:@"isa"];
|
||||||
|
decodeAsName = [classToAliasMappings objectForKey:className];
|
||||||
|
if( decodeAsName )
|
||||||
|
{
|
||||||
|
NSDebugLLog(@"GMArchiver", @"%@ to be decoded as %@", className, decodeAsName);
|
||||||
|
className = decodeAsName;
|
||||||
|
}
|
||||||
class = NSClassFromString(className);
|
class = NSClassFromString(className);
|
||||||
object = [class createObjectForModelUnarchiver:self];
|
object = [class createObjectForModelUnarchiver:self];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue