mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
More code tidyups and NSError updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23921 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6ba4584136
commit
9e7b96ab0e
87 changed files with 746 additions and 539 deletions
|
@ -1955,9 +1955,8 @@ static BOOL isLocked = NO;
|
|||
}
|
||||
@end
|
||||
|
||||
@implementation GSPrivate (UserDefaults)
|
||||
|
||||
- (BOOL) userDefaultsFlag: (GSUserDefaultFlagType)type
|
||||
BOOL
|
||||
GSPrivateDefaultsFlag(GSUserDefaultFlagType type)
|
||||
{
|
||||
if (sharedDefaults == nil)
|
||||
{
|
||||
|
@ -1965,7 +1964,6 @@ static BOOL isLocked = NO;
|
|||
}
|
||||
return flags[type];
|
||||
}
|
||||
@end
|
||||
|
||||
/* FIXME ... Slightly faster than
|
||||
* [[NSUserDefaults standardUserDefaults] dictionaryRepresentation]
|
||||
|
@ -1975,6 +1973,10 @@ NSDictionary *GSPrivateDefaultLocale()
|
|||
{
|
||||
NSDictionary *locale;
|
||||
|
||||
if (classLock == nil)
|
||||
{
|
||||
[NSUserDefaults standardUserDefaults];
|
||||
}
|
||||
[classLock lock];
|
||||
if (sharedDefaults == nil)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue