Enumeration

NSByteCountFormatterCountStyle

Specifies display of file or storage byte counts. The display style is platform specific.

Declaration

typedef enum NSByteCountFormatterCountStyle : NSInteger {
    ...
} NSByteCountFormatterCountStyle;

Topics

Constants

NSByteCountFormatterCountStyleFile

Specifies display of file byte counts. The actual behavior for this is platform-specific; in macOS 10.8, this uses the decimal style, but that may change over time.

NSByteCountFormatterCountStyleMemory

Specifies display of memory byte counts. The actual behavior for this is platform-specific; in macOS 10.8, this uses the binary style, but that may change over time.

NSByteCountFormatterCountStyleDecimal

Causes 1000 bytes to be shown as 1 KB. It is better to use NSByteCountFormatterCountStyleFile or NSByteCountFormatterCountStyleMemory in most cases.

NSByteCountFormatterCountStyleBinary

Causes 1024 bytes to be shown as 1 KB. It is better to use NSByteCountFormatterCountStyleFile or NSByteCountFormatterCountStyleMemory in most cases.