mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Add init
This commit is contained in:
parent
9f36d5107e
commit
8dd3b32d90
2 changed files with 20 additions and 2 deletions
|
@ -31,6 +31,24 @@
|
|||
|
||||
@implementation NSMeasurementFormatter
|
||||
|
||||
- (instancetype) init
|
||||
{
|
||||
self = [super init];
|
||||
if(self != nil)
|
||||
{
|
||||
_unitOptions = NSMeasurementFormatterUnitOptionsProvidedUnit;
|
||||
_unitStyle = NSFormattingUnitStyleMedium;
|
||||
_locale = RETAIN([NSLocale currentLocale]);
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(_locale);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (NSMeasurementFormatterUnitOptions) unitOptions
|
||||
{
|
||||
return _unitOptions;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue