init |
Calls [initWithCapacity:15]
- (id)init;
initWithCapacity: |
Initializes this object with a specified number of key, value pairs.
- (id)initWithCapacity:(unsigned)numItems;
numItems
count |
Returns the size of this mutable dictionary
- (unsigned)count;
keyEnumerator |
Returns an NSEnumerator object for accessing keys in the mutable dictionary
- (NSEnumerator *)keyEnumerator;
objectForKey: |
Returns the object associated with a given key
- (id)objectForKey:(id)aKey;
aKey
removeObjectForKey: |
Removes a given key and its associated object from the mutable dictionary
- (void)removeObjectForKey:(id)aKey;
aKey
setObject:forKey: |
Adds a given key and its associated object to the mutable dictionary.
- (void)setObject:(id)anObject forKey:(id)aKey;
anObject
aKey
This class uses an embedded NSMutableDictionary for implementing these primitive methods. Hence restrictions to setObject: forKey: for NSMutableDictionary apply here also; for example, anObject cannot be nil.
setDictionary: |
Sets the contents of the mutable dictionary to entries in a given dictionary
- (void)setDictionary:(NSDictionary *)otherDictionary;
otherDictionary
description |
Returns an NSString representation of the contents of this mubtable dictioanry, formatted as a property list.
- (NSString *)description;
Last Updated: Sunday, July 13, 2008