Instance Property

adaptive

Determines the display style of the size representation.

Declaration

@property(getter=isAdaptive) BOOL adaptive;

Discussion

The "adaptive" algorithm is platform specific and uses a different number of fraction digits based on the magnitude (in OS X v10.8: 0 fraction digits for bytes and KB; 1 fraction digits for MB; 2 for GB and above). Otherwise the result always tries to show at least three significant digits, introducing fraction digits as necessary.

Default is YES.

See Also

Setting Formatting Styles

formattingContext

Specify the formatting context for the formatted string.

countStyle

Specify the number of bytes to be used for kilobytes.

allowsNonnumericFormatting

Determines whether to allow more natural display of some values.

includesActualByteCount

Determines whether to include the number of bytes after the formatted string.

allowedUnits

Specify the units that can be used in the output.

includesCount

Determines whether to include the count in the resulting formatted string.

includesUnit

Determines whether to include the units in the resulting formatted string.

zeroPadsFractionDigits

Determines whether to zero pad fraction digits so a consistent number of characters is displayed in a representation.