API  1.0.0
CPLocale Class Reference

#import <CPLocale.h>

+ Inheritance diagram for CPLocale:

Instance Methods

(void) - encodeWithCoder:
 
(id) - initWithCoder:
 
(id) - initWithLocaleIdentifier:
 
(CPString- localeIdentifier
 
(id) - objectForKey:
 
- 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:
 
(id) - init
 
(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:
 
(void) - performSelector:withObject:afterDelay:
 
(void) - performSelector:withObject:afterDelay:inModes:
 
(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:
 

Class Methods

(CPArray) + availableLocaleIdentifiers
 
(id) + currentLocale
 
(CPArray) + ISOCountryCodes
 
(CPArray) + ISOLanguageCodes
 
(id) + systemLocale
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(void) + cancelPreviousPerformRequestsWithTarget:
 
(void) + cancelPreviousPerformRequestsWithTarget:selector:object:
 
(Class) + class
 
(BOOL) + conformsToProtocol:
 
(void) + exposeBinding:
 
(void) + initialize
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesImplementSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isBindingExclusive:
 
(BOOL) + isSubclassOfClass:
 
(CPSet) + keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + object:performSelector:withObject:afterDelay:inModes:
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

Detailed Description

Definition at line 2 of file CPLocale.h.

Method Documentation

◆ availableLocaleIdentifiers()

+ (CPArray) availableLocaleIdentifiers
implementation

Return an array of the availableLocaleIdentifiers

Definition at line 118 of file CPLocale.j.

◆ currentLocale()

+ (id) currentLocale
implementation

Return the current locale based on the navigator string.

Definition at line 86 of file CPLocale.j.

◆ encodeWithCoder:()

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Provided by category CPLocale(CPCoding).

Definition at line 225 of file CPLocale.j.

◆ initWithCoder:()

- (id) initWithCoder: (CPCoder aCoder
implementation

Provided by category CPLocale(CPCoding).

Definition at line 215 of file CPLocale.j.

◆ initWithLocaleIdentifier:()

- (id) initWithLocaleIdentifier: (CPString anIdentifier
implementation

Init a new instance of CPLocale with a given identifier. This method will call the class method _platformLocaleAdditionalDescriptionForIdentifier:. It's usefull if you want to implement your CPLocale. anIdentifier

Definition at line 153 of file CPLocale.j.

◆ ISOCountryCodes()

+ (CPArray) ISOCountryCodes
implementation

Return an array with the ISOCountryCodes

Definition at line 125 of file CPLocale.j.

◆ ISOLanguageCodes()

+ (CPArray) ISOLanguageCodes
implementation

Return an array with the ISOLanguageCodes

Definition at line 138 of file CPLocale.j.

◆ localeIdentifier()

- (CPString) localeIdentifier
implementation

Return the CPLocaleIdentifier

Definition at line 194 of file CPLocale.j.

◆ objectForKey:()

- (id) objectForKey: (id)  aKey
implementation

Return the object depending of the key

Parameters
aKey
Returns
an object

Definition at line 203 of file CPLocale.j.

◆ systemLocale()

+ (id) systemLocale
implementation

Return the system locale. By default is en_US

Definition at line 76 of file CPLocale.j.


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