Added changes to load new .gorm file

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17327 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2003-07-24 03:45:36 +00:00
parent 5193257c3c
commit eddb4ce19b

View file

@ -5,8 +5,8 @@
Copyright (C) 2001, 1996 Free Software Foundation, Inc. Copyright (C) 2001, 1996 Free Software Foundation, Inc.
Author: Gregory John Casamento <borgheron@yahoo.com> Author: Gregory John Casamento <greg_casamento@yahoo.com>
Date: 2001 Date: 2001,2003
Author: Scott Christley <scottc@net-community.com> Author: Scott Christley <scottc@net-community.com>
Date: 1996 Date: 1996
@ -256,9 +256,10 @@ static int __documentTag = 0;
- init - init
{ {
NSArray *userLanguages = [NSUserDefaults userLanguages]; NSArray *userLanguages = [NSUserDefaults userLanguages];
NSString *panel = nil;
// Set the language to the default for the user. // Set the language to the default for the user.
[super init]; self = [super init];
_language = [userLanguages objectAtIndex: 0]; _language = [userLanguages objectAtIndex: 0];
_wrapFlag = NO; _wrapFlag = NO;
_position = 0; _position = 0;
@ -268,11 +269,13 @@ static int __documentTag = 0;
_ignoredWords = [NSMutableDictionary new]; _ignoredWords = [NSMutableDictionary new];
// Load the gmodel file // Load the gmodel file
if(![GSGuiBundle() loadNibFile: @"SpellPanel.gmodel" panel = [GSGuiBundle() pathForResource: @"GSSpellPanel" ofType: @"gorm"
inDirectory: nil];
if(![NSBundle loadNibFile: panel
externalNameTable: [NSDictionary dictionaryWithObject: self forKey: @"NSOwner"] externalNameTable: [NSDictionary dictionaryWithObject: self forKey: @"NSOwner"]
withZone: [self zone]]) withZone: [self zone]])
{ {
NSLog(@"NIB file load failed for SpellPanel"); NSLog(@"Model file load failed for GSSpellPanel");
return nil; return nil;
} }
@ -284,6 +287,7 @@ static int __documentTag = 0;
{ {
RELEASE(_ignoredWords); RELEASE(_ignoredWords);
RELEASE(_serverProxy); RELEASE(_serverProxy);
[super dealloc];
} }
// //