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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software