@@ -30,10 +30,12 @@ typedef id (^of_dictionary_map_block_t)(id key, id object); #endif /** * \brief An abstract class for storing objects in a dictionary. + * + * Keys are copied and thus must conform to the OFCopying protocol. * * Note: Fast enumeration on a dictionary enumerates through the keys of the * dictionary. */ @interface OFDictionary: OFObject )key; + forKey: (id)key; /** * \brief Creates a new OFDictionary with the specified keys and objects. * * \param keys An array of keys @@ -77,11 +79,11 @@ * \brief Creates a new OFDictionary with the specified keys objects. * * \param firstKey The first key * \return A new autoreleased OFDictionary */ -+ dictionaryWithKeysAndObjects: (id )firstKey, ...; ++ dictionaryWithKeysAndObjects: (id)firstKey, ...; /** * \brief Initializes an already allocated OFDictionary. * * \return An initialized OFDictionary @@ -104,11 +106,11 @@ * \param key The key * \param object The object * \return A new initialized OFDictionary */ - initWithObject: (id)object - forKey: (id )key; + forKey: (id)key; /** * \brief Initializes an already allocated OFDictionary with the specified keys * and objects. * @@ -124,21 +126,21 @@ * and objects. * * \param firstKey The first key * \return A new initialized OFDictionary */ -- initWithKeysAndObjects: (id )firstKey, ...; +- initWithKeysAndObjects: (id)firstKey, ...; /** * \brief Initializes an already allocated OFDictionary with the specified key * and va_list. * * \param firstKey The first key * \param arguments A va_list of the other arguments * \return A new initialized OFDictionary */ -- initWithKey: (id )firstKey +- initWithKey: (id)firstKey arguments: (va_list)arguments; /** * \brief Returns the object for the given key or nil if the key was not found. * @@ -146,11 +148,11 @@ * reasons! * * \param key The key whose object should be returned * \return The object for the given key or nil if the key was not found */ -- (id)objectForKey: (id )key; +- (id)objectForKey: (id)key; /** * \brief Checks whether the dictionary contains an object with the specified * address. *