mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
More user defaults modification.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11359 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
784b1aef82
commit
bdb33706fe
16 changed files with 205 additions and 162 deletions
|
@ -25,7 +25,7 @@
|
|||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSDecimal.h>
|
||||
#include <Foundation/NSDecimalNumber.h>
|
||||
#include <Foundation/NSUserDefaults.h>
|
||||
#include "GSUserDefaults.h"
|
||||
|
||||
static NSDecimalNumberHandler *handler;
|
||||
|
||||
|
@ -224,9 +224,9 @@ static NSDecimalNumber *one;
|
|||
return self;
|
||||
}
|
||||
|
||||
- (id)initWithMantissa:(unsigned long long)mantissa
|
||||
exponent:(short)exponent
|
||||
isNegative:(BOOL)flag
|
||||
- (id) initWithMantissa: (unsigned long long)mantissa
|
||||
exponent: (short)exponent
|
||||
isNegative: (BOOL)flag
|
||||
{
|
||||
NSDecimal decimal;
|
||||
|
||||
|
@ -234,16 +234,14 @@ static NSDecimalNumber *one;
|
|||
return [self initWithDecimal: decimal];
|
||||
}
|
||||
|
||||
- (id)initWithString:(NSString *)numberValue
|
||||
- (id) initWithString: (NSString*)numberValue
|
||||
{
|
||||
NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
return [self initWithString: numberValue
|
||||
locale: [defs dictionaryRepresentation]];
|
||||
locale: GSUserDefaultsDictionaryRepresentation()];
|
||||
}
|
||||
|
||||
- (id)initWithString:(NSString *)numberValue
|
||||
locale:(NSDictionary *)locale;
|
||||
- (id) initWithString: (NSString*)numberValue
|
||||
locale: (NSDictionary*)locale;
|
||||
{
|
||||
NSDecimal decimal;
|
||||
|
||||
|
@ -251,7 +249,7 @@ static NSDecimalNumber *one;
|
|||
return [self initWithDecimal: decimal];
|
||||
}
|
||||
|
||||
- (NSString *)descriptionWithLocale:(NSDictionary *)locale
|
||||
- (NSString*) descriptionWithLocale: (NSDictionary*)locale
|
||||
{
|
||||
return NSDecimalString(&data, locale);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue