mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Warn about using an unsafe +initialize
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32455 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f169caa814
commit
95e4ed9e35
7 changed files with 7932 additions and 7227 deletions
|
@ -783,15 +783,15 @@ newLanguages(NSArray *oldNames)
|
|||
|
||||
+ (NSArray*) userLanguages
|
||||
{
|
||||
return [[NSUserDefaults standardUserDefaults]
|
||||
stringArrayForKey: @"NSLanguages"];
|
||||
return [[self standardUserDefaults] stringArrayForKey: @"NSLanguages"];
|
||||
}
|
||||
|
||||
+ (void) setUserLanguages: (NSArray*)languages
|
||||
{
|
||||
NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];
|
||||
NSUserDefaults *defs;
|
||||
NSMutableDictionary *dict;
|
||||
|
||||
defs = [self standardUserDefaults];
|
||||
dict = [[defs volatileDomainForName: GSPrimaryDomain] mutableCopy];
|
||||
if (languages == nil) // Remove the entry
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue