@@ -15,10 +15,11 @@ */ #import "OFObject.h" @class OFEnumerator; +@class OFArray; /*! * @brief A protocol for getting an enumerator for the object. */ @protocol OFEnumerating @@ -40,10 +41,17 @@ * * @return The next object */ - (id)nextObject; +/*! + * @brief Returns an array of all remaining objects in the collection. + * + * @return An array of all remaining objects in the collection + */ +- (OFArray*)allObjects; + /*! * @brief Resets the enumerator, so the next call to nextObject returns the * first object again. */ - (void)reset;