@@ -22,16 +22,18 @@ /** * Sets a key to an object. A key can be any object. * * \param key The key to set * \param obj The object to set the key to + * \return The old object, autoreleased */ -- setObject: (OFObject*)obj - forKey: (OFObject *)key; +- (id)setObject: (OFObject*)obj + forKey: (OFObject *)key; /** * Remove the object with the given key from the dictionary. * * \param key The key whose object should be removed + * \return The object that was stored for the key, autoreleased */ -- removeObjectForKey: (OFObject*)key; +- (id)removeObjectForKey: (OFObject*)key; @end