@@ -37,11 +37,21 @@ * \return A new autoreleased OFDictionary */ + dictionaryWithHashSize: (int)hashsize; /** - * Creates a new OFDictionary with the specified objects. + * Creates a new OFDictionary with the specified key and object. + * + * \param key The key + * \param obj The object + * \return A new autoreleased OFDictionary + */ ++ dictionaryWithKey: (OFObject *)key + andObject: (OFObject*)obj; + +/** + * Creates a new OFDictionary with the specified keys objects. * * \param first The first key * \return A new autoreleased OFDictionary */ + dictionaryWithKeysAndObjects: (OFObject *)first, ...; @@ -60,19 +70,32 @@ * \return An initialized OFDictionary */ - initWithHashSize: (int)hashsize; /** - * Initialized an already allocated OFDictionary with the specified objects. + * Initializes an already allocated OFDictionary with the specified key and + * object. + * + * \param key The key + * \param obj The object + * \return A new initialized OFDictionary + */ +- initWithKey: (OFObject *)key + andObject: (OFObject*)obj; + +/** + * Initializes an already allocated OFDictionary with the specified keys and + * objects. * * \param first The first key * \return A new initialized OFDictionary */ - initWithKeysAndObjects: (OFObject *)first, ...; /** - * Initialized an already allocated OFDictionary with the specified objects. + * Initializes an already allocated OFDictionary with the specified key and + * va_list. * * \param first The first key * \return A new initialized OFDictionary */ - initWithKey: (OFObject *)first