mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
User defaults fix ... use NSLanguages
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9302 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
05844a01b9
commit
a3389210f1
4 changed files with 20 additions and 4 deletions
|
@ -152,7 +152,7 @@ GSFFCallInvokeWithTargetAndImp(NSInvocation *_inv, id anObject, IMP imp)
|
|||
{
|
||||
int i;
|
||||
av_alist alist;
|
||||
NSInvocation_t *inv = _inv;
|
||||
NSInvocation_t *inv = (NSInvocation_t*)_inv;
|
||||
void *retval = inv->_retval;
|
||||
|
||||
/* Do an av call starting with the return type */
|
||||
|
|
|
@ -381,10 +381,10 @@ static BOOL setSharedDefaults = NO; /* Flag to prevent infinite recursion */
|
|||
NSMutableDictionary *globDict = [[self standardUserDefaults]
|
||||
persistentDomainForName: NSGlobalDomain];
|
||||
|
||||
if (!languages) // Remove the entry
|
||||
[globDict removeObjectForKey: @"Languages"];
|
||||
if (languages == nil) // Remove the entry
|
||||
[globDict removeObjectForKey: @"NSLanguages"];
|
||||
else
|
||||
[globDict setObject: languages forKey: @"Languages"];
|
||||
[globDict setObject: languages forKey: @"NSLanguages"];
|
||||
[[self standardUserDefaults]
|
||||
setPersistentDomain: globDict forName: NSGlobalDomain];
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue