NSDictionary(ETFramework) Category Reference
| Declared in | ETDictionary.h |
Overview
NSDictionary (ETFramework) its a helper category that provides better handling methods for NSDictionary objects.
Instance Methods
dateForKey:withFormatter:
Retrieves a NSDate object associated to the specified key with the provided NSDateFormatter if any.
- (NSDate *)dateForKey:(NSString *)key withFormatter:(NSDateFormatter *)dateFormatterParameters
- key
The object key that will be used to fetch the desired
NSDateobject.
- dateFormatter
The
NSDateFormatterthat will be used to format the retrieved object. Can benil.
Return Value
The NSDate object associated to the provided key (formatted if any NSDateFormatter was provided).
Declared In
ETDictionary.hdictionaryForKey:
Retrieves a NSDictionary object associated to the specified key.
- (NSDictionary *)dictionaryForKey:(NSString *)keyParameters
- key
The object key that will be used to fetch the desired
NSDictionaryobject.
Return Value
The NSDictionary object associated to the provided key.
Declared In
ETDictionary.hnonNullObjectForKey:
Retrieves an object associated to the provided key if said objects is not nil nor NSNull.
- (id)nonNullObjectForKey:(NSString *)keyParameters
- key
The object key that will be used to fetch the desired object.
Return Value
The non nil non NSNull object associated to the provided key.
Declared In
ETDictionary.h