Summary of user defaults

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11568 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2001-11-28 19:20:10 +00:00
parent b89ba69ae8
commit f90488b0e2
6 changed files with 433 additions and 3 deletions

View file

@ -625,7 +625,6 @@ static NSString *disabledName = @".GNUstepDisabled";
- (void) rebuildServices
{
NSDictionary *services;
NSUserDefaults *defs;
NSMutableArray *newLang;
NSMutableSet *alreadyFound;
NSMutableDictionary *newServices;
@ -634,8 +633,7 @@ static NSString *disabledName = @".GNUstepDisabled";
if (allServices == nil)
return;
defs = [NSUserDefaults standardUserDefaults];
newLang = AUTORELEASE([[defs arrayForKey: @"Languages"] mutableCopy]);
newLang = AUTORELEASE([[NSUserDefaults userLanguages] mutableCopy]);
if (newLang == nil)
{
newLang = [NSMutableArray arrayWithCapacity: 1];