Declared in ETDictionary.h

Overview

NSDictionary (ETFramework) its a helper category that provides better handling methods for NSDictionary objects.

Tasks

Validation methods.

Type specific retrieval methods.

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 *)dateFormatter

Parameters

key

The object key that will be used to fetch the desired NSDate object.

dateFormatter

The NSDateFormatter that will be used to format the retrieved object. Can be nil.

Return Value

The NSDate object associated to the provided key (formatted if any NSDateFormatter was provided).

Declared In

ETDictionary.h

dictionaryForKey:

Retrieves a NSDictionary object associated to the specified key.

- (NSDictionary *)dictionaryForKey:(NSString *)key

Parameters

key

The object key that will be used to fetch the desired NSDictionary object.

Return Value

The NSDictionary object associated to the provided key.

Declared In

ETDictionary.h

nonNullObjectForKey:

Retrieves an object associated to the provided key if said objects is not nil nor NSNull.

- (id)nonNullObjectForKey:(NSString *)key

Parameters

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