mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Add init
This commit is contained in:
parent
7092968ed5
commit
98830d3962
3 changed files with 36 additions and 0 deletions
|
@ -26,6 +26,18 @@
|
|||
|
||||
@implementation NSEnergyFormatter
|
||||
|
||||
- (instancetype) init
|
||||
{
|
||||
self = [super init];
|
||||
if(self != nil)
|
||||
{
|
||||
_numberFormatter = nil;
|
||||
_unitStyle = NSFormattingUnitStyleMedium;
|
||||
_isForFoodEnergyUse = NO;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSNumberFormatter *) numberFormatter
|
||||
{
|
||||
return _numberFormatter;
|
||||
|
|
|
@ -27,6 +27,18 @@
|
|||
|
||||
@implementation NSLengthFormatter
|
||||
|
||||
- (instancetype) init
|
||||
{
|
||||
self = [super init];
|
||||
if(self != nil)
|
||||
{
|
||||
_numberFormatter = nil;
|
||||
_unitStyle = NSFormattingUnitStyleMedium;
|
||||
_isForPersonHeightUse = NO;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSNumberFormatter *) numberFormatter
|
||||
{
|
||||
return _numberFormatter;
|
||||
|
|
|
@ -27,6 +27,18 @@
|
|||
|
||||
@implementation NSMassFormatter
|
||||
|
||||
- (instancetype) init
|
||||
{
|
||||
self = [super init];
|
||||
if(self != nil)
|
||||
{
|
||||
_numberFormatter = nil;
|
||||
_unitStyle = NSFormattingUnitStyleMedium;
|
||||
_isForPersonMassUse = NO;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSNumberFormatter *) numberFormatter
|
||||
{
|
||||
return _numberFormatter;
|
||||
|
|
Loading…
Reference in a new issue