@@ -11,10 +11,11 @@ #include #import "OFObject.h" #import "OFList.h" +#import "OFArray.h" /** * The OFDictionary class provides a class for using hash tables. */ @interface OFDictionary: OFObject @@ -46,10 +47,20 @@ * \return A new autoreleased OFDictionary */ + dictionaryWithKey: (OFObject *)key andObject: (OFObject*)obj; +/** + * Creates a new OFDictionary with the specified keys and objects. + * + * \param keys An array of keys + * \param objs An array of objects + * \return A new autoreleased OFDictionary + */ ++ dictionaryWithKeys: (OFArray*)keys + andObjects: (OFArray*)objs; + /** * Creates a new OFDictionary with the specified keys objects. * * \param first The first key * \return A new autoreleased OFDictionary @@ -80,10 +91,21 @@ * \return A new initialized OFDictionary */ - initWithKey: (OFObject *)key andObject: (OFObject*)obj; +/** + * Initializes an already allocated OFDictionary with the specified keys and + * objects. + * + * \param keys An array of keys + * \param objs An array of objects + * \return A new initialized OFDictionary + */ +- initWithKeys: (OFArray*)keys + andObjects: (OFArray*)objs; + /** * Initializes an already allocated OFDictionary with the specified keys and * objects. * * \param first The first key