mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:00:37 +00:00
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:
parent
b89ba69ae8
commit
f90488b0e2
6 changed files with 433 additions and 3 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue