25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
*/
@interface OFMutableDictionary: OFDictionary
{
unsigned long mutations;
}
/**
* Sets an object for a key.
* A key can be any object.
*
* \param key The key to set
* \param object The object to set the key to
*/
- (void)setObject: (id)object
forKey: (id <OFCopying>)key;
/**
* Remove the object with the given key from the dictionary.
*
* \param key The key whose object should be removed
*/
- (void)removeObjectForKey: (id)key;
#ifdef OF_HAVE_BLOCKS
/**
* Replaces each object with the object returned by the block.
*
* \param block The block which returns a new object for each object
*/
- (void)replaceObjectsUsingBlock: (of_dictionary_replace_block_t)block;
#endif
@end
|
|
>
|
|
|
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
*/
@interface OFMutableDictionary: OFDictionary
{
unsigned long mutations;
}
/**
* \brief Sets an object for a key.
*
* A key can be any object that conforms to the OFCopying protocol.
*
* \param key The key to set
* \param object The object to set the key to
*/
- (void)setObject: (id)object
forKey: (id <OFCopying>)key;
/**
* \brief Removes the object for the specified key from the dictionary.
*
* \param key The key whose object should be removed
*/
- (void)removeObjectForKey: (id)key;
#ifdef OF_HAVE_BLOCKS
/**
* \brief Replaces each object with the object returned by the block.
*
* \param block The block which returns a new object for each object
*/
- (void)replaceObjectsUsingBlock: (of_dictionary_replace_block_t)block;
#endif
@end
|