NSMutableDictionary(GCKAdditions) Category Reference

A category that adds some convenience methods to NSDictionary for setting values of various types. More...

#import <NSMutableDictionary+GCKAdditions.h>

Instance Methods

(void) - gck_setStringValue:forKey:
 Sets an NSString value for a key. More...
 
(void) - gck_setIntegerValue:forKey:
 Sets an NSInteger value for a key. More...
 
(void) - gck_setUIntegerValue:forKey:
 Sets an NSUInteger value for a key. More...
 
(void) - gck_setDoubleValue:forKey:
 Sets a double value for a key. More...
 
(void) - gck_setBoolValue:forKey:
 Sets a BOOL value for a key. More...
 

Detailed Description

A category that adds some convenience methods to NSDictionary for setting values of various types.

These methods are particularly useful for getting and setting fields of JSON data objects.

Method Documentation

- (void) gck_setBoolValue: (BOOL)  value
forKey: (NSString *)  key 

Sets a BOOL value for a key.

Parameters
valueThe value.
keyThe key.
- (void) gck_setDoubleValue: (double)  value
forKey: (NSString *)  key 

Sets a double value for a key.

Parameters
valueThe value.
keyThe key.
- (void) gck_setIntegerValue: (NSInteger)  value
forKey: (NSString *)  key 

Sets an NSInteger value for a key.

Parameters
valueThe value.
keyThe key.
- (void) gck_setStringValue: (NSString *)  value
forKey: (NSString *)  key 

Sets an NSString value for a key.

Parameters
valueThe value.
keyThe key.
- (void) gck_setUIntegerValue: (NSUInteger)  value
forKey: (NSString *)  key 

Sets an NSUInteger value for a key.

Parameters
valueThe value.
keyThe key.

The documentation for this category was generated from the following file: