mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Add stringForObjectValue: to formatters
This commit is contained in:
parent
981fecc39b
commit
a58a58373d
3 changed files with 39 additions and 4 deletions
|
@ -67,6 +67,13 @@ GS_PRIVATE_INTERNAL(NSByteCountFormatter)
|
|||
return [formatter stringFromByteCount: byteCount];
|
||||
}
|
||||
|
||||
- (NSString *)stringForObjectValue: (id)obj
|
||||
{
|
||||
long long byteCount = [obj longLongValue];
|
||||
return [[self class] stringFromByteCount: byteCount
|
||||
countStyle: NSByteCountFormatterUseDefault];
|
||||
}
|
||||
|
||||
- (NSByteCountFormatterUnits) _adaptiveSettings: (double)byteCount
|
||||
{
|
||||
NSByteCountFormatterUnits units = NSByteCountFormatterUseDefault;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue