List of all members.
Detailed Description
A class for storing objects in a hash table.
Member Function Documentation
+ (id) dictionaryWithKeysAndObjects: |
|
(id <OFCopying>) |
key |
, |
|
|
... | |
|
|
| | |
+ (id) dictionaryWithObject: |
|
(id) |
obj |
forKey: |
|
(id <OFCopying>) |
key | |
|
|
| | |
Creates a new OFDictionary with the specified key and object.
- Parameters:
-
| key | The key |
| obj | The object |
- Returns:
- A new autoreleased OFDictionary
+ (id) dictionaryWithObjects: |
|
(OFArray*) |
objs |
forKeys: |
|
(OFArray*) |
keys | |
|
|
| | |
Creates a new OFDictionary with the specified keys and objects.
- Parameters:
-
| keys | An array of keys |
| objs | An array of objects |
- Returns:
- A new autoreleased OFDictionary
- (void) enumerateKeysAndObjectsUsingBlock: |
|
(of_dictionary_enumeration_block_t) |
block |
|
|
Executes a block for each key / object pair.
- Parameters:
-
| block | The block to execute for each key / object pair. |
- (OFDictionary *) filteredDictionaryUsingBlock: |
|
(of_dictionary_filter_block_t) |
block |
|
|
Returns a new dictionary, only containing the objects for which the block returns YES.
- Parameters:
-
| block | A block which determines if the object should be in the new dictionary |
- Returns:
- A new, autoreleased OFDictionary
- (id) initWithKey: |
|
(id <OFCopying>) |
first |
argList: |
|
(va_list) |
args | |
|
|
| | |
Initializes an already allocated OFDictionary with the specified key and va_list.
- Parameters:
-
| first | The first key |
| args | A va_list of the other arguments |
- Returns:
- A new initialized OFDictionary
- (id) initWithKeysAndObjects: |
|
(id <OFCopying>) |
first |
, |
|
|
... | |
|
|
| | |
Initializes an already allocated OFDictionary with the specified keys and objects.
- Parameters:
-
- Returns:
- A new initialized OFDictionary
- (id) initWithObject: |
|
(id) |
obj |
forKey: |
|
(id <OFCopying>) |
key | |
|
|
| | |
Initializes an already allocated OFDictionary with the specified key and object.
- Parameters:
-
| key | The key |
| obj | The object |
- Returns:
- A new initialized OFDictionary
Initializes an already allocated OFDictionary with the specified keys and objects.
- Parameters:
-
| keys | An array of keys |
| objs | An array of objects |
- Returns:
- A new initialized OFDictionary
- Returns:
- An OFEnumerator to enumerate through the dictionary's keys
- (OFDictionary *) mappedDictionaryUsingBlock: |
|
(of_dictionary_map_block_t) |
block |
|
|
Returns a new dictionary, mapping each object using the specified block.
- Parameters:
-
| block | A block which maps an object for each object |
- Returns:
- A new, autorelease OFDictionary
- (id) objectForKey: |
|
(id) |
key |
|
|
Returns the object for the given key or nil if the key was not found.
The returned object is not retained and autoreleased for performance reasons!
- Parameters:
-
| key | The key whose object should be returned |
- Returns:
- The object for the given key or nil if the key was not found
The documentation for this class was generated from the following files: