10.2.5: NSMutableDictionary(AGSAdditions) Category Reference
10.2.5
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSMutableDictionary(AGSAdditions) Category Reference

Description

A category on NSMutableDictionary containing convenience methods

Since
1.0

Instance Methods

(void) - ags_safeSetObject:forKey:
 
(void) - ags_safeSetObject:forKey:useNSNull:
 

Method Documentation

- (void) ags_safeSetObject: (NSObject *)  object
forKey: (NSString *)  key 

Sets the object into the dictionary with the given key. If the object is nil, will not set anything in the dictionary.

Parameters
objectThe object to place in the dictionary.
keyThe key in which to pair with object in the dictionary.
Deprecated:
Deprecated at 10.1.1. Use #setValue:forKey: on NSMutableDictionary instead.
Since
2.2
- (void) ags_safeSetObject: (NSObject *)  object
forKey: (NSString *)  key
useNSNull: (BOOL)  useNSNull 

Sets the object into the dictionary with the given key. If the object is nil, will use the useNSNull parameter to determine if it should set NSNull or not for nil objects.

Parameters
objectThe object to place in the dictionary.
keyThe key in which to pair with object in the dictionary.
useNSNullThe parameter that determines if NSNull should be used for nil objects.
Deprecated:
Deprecated at 10.1.1. Use #setValue:forKey: on NSMutableDictionary instead.
Since
2.2