* 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:
Gregory John Casamento 2006-08-20 16:25:23 +00:00
parent b05e6844d4
commit a1aac66d2c
3 changed files with 19 additions and 5 deletions

View file

@ -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> 2006-08-19 19:18-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/2Controls/GormFormAttributesInspector.m: Minor * Palettes/2Controls/GormFormAttributesInspector.m: Minor

View file

@ -3286,8 +3286,8 @@ static NSImage *fileImage = nil;
if(isOlderArchive && [filePrefsManager isLatest]) if(isOlderArchive && [filePrefsManager isLatest])
{ {
int retval = NSRunAlertPanel(_(@"Compatibility Warning"), int retval = NSRunAlertPanel(_(@"Compatibility Warning"),
_(@"Saving will update this gorm to the latest version,\n" _(@"Saving will update this gorm to the latest version \n"
@"which may not be compatible with some previous versions, \n" @"which may not be compatible with some previous versions \n"
@"of GNUstep."), @"of GNUstep."),
_(@"Save"), _(@"Save"),
_(@"Don't Save"), nil, nil); _(@"Don't Save"), nil, nil);

View file

@ -145,7 +145,8 @@
NSEnumerator *enumerator = nil; NSEnumerator *enumerator = nil;
id <IBConnectors> con = nil; id <IBConnectors> con = nil;
NSString *ownerClass, *key = nil; NSString *ownerClass, *key = nil;
BOOL repairFile = [[NSUserDefaults standardUserDefaults] boolForKey: @"GormRepairFileOnLoad"]; BOOL repairFile = [[NSUserDefaults standardUserDefaults]
boolForKey: @"GormRepairFileOnLoad"];
GormPalettesManager *palettesManager = [(id<Gorm>)NSApp palettesManager]; GormPalettesManager *palettesManager = [(id<Gorm>)NSApp palettesManager];
NSDictionary *substituteClasses = [palettesManager substituteClasses]; NSDictionary *substituteClasses = [palettesManager substituteClasses];
NSEnumerator *en = [substituteClasses keyEnumerator]; NSEnumerator *en = [substituteClasses keyEnumerator];
@ -317,7 +318,8 @@
* If the GSNibContainer version is 0, we need to add the top level objects * If the GSNibContainer version is 0, we need to add the top level objects
* to the list so that they can be properly processed. * 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; id obj;
NSEnumerator *en = [nt objectEnumerator]; NSEnumerator *en = [nt objectEnumerator];
@ -333,6 +335,11 @@
} }
[document setOlderArchive: YES]; [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 * If the GSWindowTemplate version is 0, we need to let Gorm know that this is