mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +00:00
* GormCore/GormDocument.m: Modify outdated "upgrade" warning in
fileWrapperRepresentationOfType:. * GormCore/GormGormWrapperLoader.m: Set .gorms of version 1 as old in buildFileWrapperDictionaryWithDocument:. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23319 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b05e6844d4
commit
a1aac66d2c
3 changed files with 19 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-08-20 12:23-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormDocument.m: Modify outdated "upgrade" warning in
|
||||
fileWrapperRepresentationOfType:.
|
||||
* GormCore/GormGormWrapperLoader.m: Set .gorms of version 1 as
|
||||
old in buildFileWrapperDictionaryWithDocument:.
|
||||
|
||||
2006-08-19 19:18-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Palettes/2Controls/GormFormAttributesInspector.m: Minor
|
||||
|
|
|
@ -3286,8 +3286,8 @@ static NSImage *fileImage = nil;
|
|||
if(isOlderArchive && [filePrefsManager isLatest])
|
||||
{
|
||||
int retval = NSRunAlertPanel(_(@"Compatibility Warning"),
|
||||
_(@"Saving will update this gorm to the latest version,\n"
|
||||
@"which may not be compatible with some previous versions, \n"
|
||||
_(@"Saving will update this gorm to the latest version \n"
|
||||
@"which may not be compatible with some previous versions \n"
|
||||
@"of GNUstep."),
|
||||
_(@"Save"),
|
||||
_(@"Don't Save"), nil, nil);
|
||||
|
|
|
@ -145,14 +145,15 @@
|
|||
NSEnumerator *enumerator = nil;
|
||||
id <IBConnectors> con = nil;
|
||||
NSString *ownerClass, *key = nil;
|
||||
BOOL repairFile = [[NSUserDefaults standardUserDefaults] boolForKey: @"GormRepairFileOnLoad"];
|
||||
BOOL repairFile = [[NSUserDefaults standardUserDefaults]
|
||||
boolForKey: @"GormRepairFileOnLoad"];
|
||||
GormPalettesManager *palettesManager = [(id<Gorm>)NSApp palettesManager];
|
||||
NSDictionary *substituteClasses = [palettesManager substituteClasses];
|
||||
NSEnumerator *en = [substituteClasses keyEnumerator];
|
||||
NSString *subClassName = nil;
|
||||
unsigned int version = NSNotFound;
|
||||
NSDictionary *fileWrappers = nil;
|
||||
|
||||
|
||||
if ([super loadFileWrapper: wrapper withDocument: doc])
|
||||
{
|
||||
GormClassManager *classManager = [document classManager];
|
||||
|
@ -317,7 +318,8 @@
|
|||
* If the GSNibContainer version is 0, we need to add the top level objects
|
||||
* to the list so that they can be properly processed.
|
||||
*/
|
||||
if([u versionForClassName: NSStringFromClass([GSNibContainer class])] == 0)
|
||||
version = [u versionForClassName: NSStringFromClass([GSNibContainer class])];
|
||||
if(version == 0)
|
||||
{
|
||||
id obj;
|
||||
NSEnumerator *en = [nt objectEnumerator];
|
||||
|
@ -333,6 +335,11 @@
|
|||
}
|
||||
[document setOlderArchive: YES];
|
||||
}
|
||||
else if(version == 1)
|
||||
{
|
||||
// nothing else, just mark it as older...
|
||||
[document setOlderArchive: YES];
|
||||
}
|
||||
|
||||
/*
|
||||
* If the GSWindowTemplate version is 0, we need to let Gorm know that this is
|
||||
|
|
Loading…
Reference in a new issue