ObjFW
|
An abstract class for storing and changing objects in a dictionary. More...
#import <OFMutableDictionary.h>
Public Member Functions | |
(void) | - setObject:forKey: |
Sets an object for a key. | |
(void) | - removeObjectForKey: |
Removes the object for the specified key from the dictionary. | |
(void) | - replaceObjectsUsingBlock: |
Replaces each object with the object returned by the block. | |
(void) | - makeImmutable |
Converts the mutable dictionary to an immutable dictionary. |
An abstract class for storing and changing objects in a dictionary.
- (void) removeObjectForKey: | (id) | key |
Removes the object for the specified key from the dictionary.
key | The key whose object should be removed |
- (void) replaceObjectsUsingBlock: | (of_dictionary_replace_block_t) | block |
Replaces each object with the object returned by the block.
block | The block which returns a new object for each object |
- (void) setObject: | (id) | object | |
forKey: | (id) | key | |
Sets an object for a key.
A key can be any object that conforms to the OFCopying protocol.
key | The key to set |
object | The object to set the key to |