#import <CPByteCountFormatter.h>
◆ allowedUnits()
◆ allowsNonnumericFormatting()
- (BOOL) allowsNonnumericFormatting |
|
|
|
|
implementation |
◆ countStyle()
◆ encodeWithCoder:()
- (void) encodeWithCoder: |
|
(CPCoder) |
aCoder |
|
|
implementation |
◆ getObjectValue:forString:errorDescription:()
- (BOOL) getObjectValue: |
|
(idRef) |
anObject |
forString: |
|
(CPString) |
aString |
errorDescription: |
|
(CPStringRef) |
anError |
|
|
| |
|
implementation |
The default implementation of this method raises an exception.
When implementing a subclass, return by reference the object anObject after creating it from aString. Return YES
if the conversion is successful. If you return NO
, also return by reference (in anError) a localized user-presentable CPString object that explains the reason why the conversion failed; the delegate (if any) of the CPControl object can then respond to the failure in control:didFailToFormatString:errorDescription:. However, if anError is nil, the sender is not interested in the error description, and you should not attempt to assign one.
- Parameters
-
anObject | if conversion is successful, upon return contains the object created from the string |
aString | the string to parse. |
anError | if non-nil, if there is an error during the conversion, upon return contains an CPString object that describes the problem. |
- Returns
- BOOL
YES
if the conversion from the string to a view content object was successful, otherwise NO
.
Reimplemented from CPFormatter.
Definition at line 214 of file CPByteCountFormatter.j.
◆ includesActualByteCount()
- (BOOL) includesActualByteCount |
|
|
|
|
implementation |
◆ includesCount()
◆ includesUnit()
◆ init()
◆ initWithCoder:()
- (id) initWithCoder: |
|
(CPCoder) |
aCoder |
|
|
implementation |
◆ isAdaptive()
◆ setAdaptive:()
- (void) setAdaptive: |
|
(BOOL) |
shouldBeAdaptive |
|
|
implementation |
◆ setAllowedUnits:()
- (void) setAllowedUnits: |
|
(int) |
allowed |
|
|
implementation |
◆ setAllowsNonnumericFormatting:()
- (void) setAllowsNonnumericFormatting: |
|
(BOOL) |
shouldAllowNonnumericFormatting |
|
|
implementation |
◆ setCountStyle:()
- (void) setCountStyle: |
|
(int) |
style |
|
|
implementation |
◆ setIncludesActualByteCount:()
- (void) setIncludesActualByteCount: |
|
(BOOL) |
shouldIncludeActualByteCount |
|
|
implementation |
◆ setIncludesCount:()
- (void) setIncludesCount: |
|
(BOOL) |
shouldIncludeCount |
|
|
implementation |
◆ setIncludesUnit:()
- (void) setIncludesUnit: |
|
(BOOL) |
shouldIncludeUnit |
|
|
implementation |
◆ setZeroPadsFractionDigits:()
- (void) setZeroPadsFractionDigits: |
|
(BOOL) |
shouldZeroPad |
|
|
implementation |
◆ stringForObjectValue:()
- (CPString) stringForObjectValue: |
|
(id) |
anObject |
|
|
implementation |
◆ stringFromByteCount:()
- (CPString) stringFromByteCount: |
|
(int) |
byteCount |
|
|
implementation |
◆ stringFromByteCount:countStyle:()
◆ zeroPadsFractionDigits()
- (BOOL) zeroPadsFractionDigits |
|
|
|
|
implementation |
The documentation for this class was generated from the following files: