Updated code in -[Gorm applicationWillTerminate:] to save the state of the inspector/palette when closing.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21378 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-06-30 04:45:40 +00:00
parent eb44c977c5
commit f5c1bcf9e0
4 changed files with 13 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2005-06-30 00:21 Gregory John Casamento <greg_casamento@yahoo.com>
* English.lproj/GormPrefGeneral.gorm: Remove the preferences
to manually change if the inspector or palette is shown.
* Gorm.m: -[Gorm applicationWillTerminate:] added code to
save the inspector and palette state.
2005-06-20 20:11 Gregory John Casamento <greg_casamento@yahoo.com>
* GNUmakefile.preamble: Remove dependency on GL.

12
Gorm.m
View file

@ -212,12 +212,12 @@
- (void) applicationWillTerminate: (NSApplication*)sender
{
// [[NSUserDefaults standardUserDefaults]
// setBool: [[[self inspectorsManager] panel] isVisible]
// forKey: @"ShowInspectors"];
// [[NSUserDefaults standardUserDefaults]
// setBool: [[[self palettesManager] panel] isVisible]
// forKey: @"ShowPalettes"];
[[NSUserDefaults standardUserDefaults]
setBool: [[[self inspectorsManager] panel] isVisible]
forKey: @"ShowInspectors"];
[[NSUserDefaults standardUserDefaults]
setBool: [[[self palettesManager] panel] isVisible]
forKey: @"ShowPalettes"];
}
- (BOOL) applicationShouldTerminate: (NSApplication*)sender