API  0.9.6
 All Classes Files Functions Variables Macros Modules Pages
CPDateFormatter Class Reference

#import <CPDateFormatter.h>

+ Inheritance diagram for CPDateFormatter:

Instance Methods

(CPDate- dateFromString:
 
(CPDateFormatterStyle) - dateStyle
 
(CPString- editingStringForObjectValue:
 
(void) - encodeWithCoder:
 
(BOOL) - getObjectValue:forString:errorDescription:
 
(id) - init
 
(id) - initWithCoder:
 
(void) - setDateStyle:
 
(CPString- stringForObjectValue:
 
(CPString- stringFromDate:
 
- Instance Methods inherited from CPFormatter
(BOOL) - getObjectValue:forString:errorDescription:
 
(BOOL) - isPartialStringValid:newEditingString:errorDescription:
 
(BOOL) - isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context:
 
(void) - applyChange:toKeyPath:
 
(id) - autorelease
 
(id) - awakeAfterUsingCoder:
 
(void) - awakeFromCib
 
(void) - bind:toObject:withKeyPath:options:
 
(Class) - classForCoder
 
(Class) - classForKeyedArchiver
 
(CPString- className
 
(id) - copy
 
(void) - dealloc
 
(CPString- description
 
(CPDictionary- dictionaryWithValuesForKeys:
 
(void) - didChange:valuesAtIndexes:forKey:
 
(void) - didChangeValueForKey:
 
(void) - didChangeValueForKey:withSetMutation:usingObjects:
 
(void) - doesNotRecognizeSelector:
 
(CPArray- exposedBindings
 
(id) - forwardingTargetForSelector:
 
(void) - forwardInvocation:
 
(unsigned) - hash
 
(BOOL) - implementsSelector:
 
(CPDictionary- infoForBinding:
 
(BOOL) - isEqual:
 
(BOOL) - isKindOfClass:
 
(BOOL) - isMemberOfClass:
 
(BOOL) - isProxy
 
(IMP) - methodForSelector:
 
(CPMethodSignature) - methodSignatureForSelector:
 
(id) - mutableArrayValueForKey:
 
(id) - mutableArrayValueForKeyPath:
 
(id) - mutableCopy
 
(id) - mutableSetValueForKey:
 
(id) - mutableSetValueForKeyPath:
 
(id) - performSelector:
 
(id) - performSelector:withObject:
 
(id) - performSelector:withObject:withObject:
 
(id) - performSelector:withObjects:
 
(void) - release
 
(void) - removeObserver:forKeyPath:
 
(id) - replacementObjectForArchiver:
 
(id) - replacementObjectForCoder:
 
(id) - replacementObjectForKeyedArchiver:
 
(BOOL) - respondsToSelector:
 
(id) - retain
 
(id) - self
 
(void) - setValue:forKey:
 
(void) - setValue:forKeyPath:
 
(void) - setValue:forUndefinedKey:
 
(void) - setValuesForKeysWithDictionary:
 
(CPString- UID
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Additional Inherited Members

- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(Class) + class
 
(void) + exposeBinding:
 
(void) + initialize
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isSubclassOfClass:
 
(CPSet+ keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 
- Instance Variables inherited from CPObject
Class isa
 

Detailed Description

Not yet implemented. This is a stub class. *

CPDateFormatter takes a CPDate value and formats it as text for display. It also supports the converse, taking text and interpreting it as a CPDate by configurable formatting rules.

Definition at line 2 of file CPDateFormatter.h.

Method Documentation

- (CPDate) dateFromString: (CPString aString
implementation

Definition at line 70 of file CPDateFormatter.j.

- (CPDateFormatterStyle) dateStyle
implementation

Synthesized accessor method.

Provided by category CPDateFormatter(CPSynthesizedAccessors).

Definition at line 138 of file CPDateFormatter.j.

- (CPString) editingStringForObjectValue: (id)  anObject
implementation

The default implementation of this method invokes stringForObjectValue:.

When implementing a subclass, override this method only when the string that users see and the string that they edit are different. In your implementation, return an CPString object that is used for editing, following the logic recommended for implementing stringForObjectValue:. As an example, you would implement this method if you want the dollar signs in displayed strings removed for editing.

Parameters
anObjectthe object for which to return an editing string
Returns
CPString object that is used for editing the textual representation of an object

Reimplemented from CPFormatter.

Definition at line 92 of file CPDateFormatter.j.

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Reimplemented from CPFormatter.

Provided by category CPDateFormatter(CPCoding).

Definition at line 124 of file CPDateFormatter.j.

- (BOOL) getObjectValue: (id)  anObject
forString: (CPString aString
errorDescription: (CPString anError 
implementation

Definition at line 97 of file CPDateFormatter.j.

- (id) init
implementation

Initializes the receiver

Returns
the initialized receiver

Reimplemented from CPObject.

Definition at line 47 of file CPDateFormatter.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Reimplemented from CPFormatter.

Provided by category CPDateFormatter(CPCoding).

Definition at line 112 of file CPDateFormatter.j.

- (void) setDateStyle: (CPDateFormatterStyle)  aValue
implementation

Synthesized accessor method.

Provided by category CPDateFormatter(CPSynthesizedAccessors).

Definition at line 146 of file CPDateFormatter.j.

- (CPString) stringForObjectValue: (id)  anObject
implementation

The default implementation of this method raises an exception.

When implementing a subclass, return the CPString object that textually represents the view's object for display and if editingStringForObjectValue: is unimplemented for editing. First test the passed-in object to see if it's of the correct class. If it isn't, return nil; but if it is of the right class, return a properly formatted and, if necessary, localized string. (See the specification of the CPString class for formatting and localizing details.)

Parameters
anObjectThe object for which a textual representation is returned
Returns
CPSting a formatted string

Reimplemented from CPFormatter.

Definition at line 84 of file CPDateFormatter.j.

- (CPString) stringFromDate: (CPDate aDate
implementation

Definition at line 57 of file CPDateFormatter.j.


The documentation for this class was generated from the following files: