diff --git a/ChangeLog b/ChangeLog index 974e54c89..e4fee36b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-13 Richard Frith-Macdonald + + * Source/NSArray.m: Minor optimisation ...use a subarray when + returning all objects from an array enumerator. + 2008-02-07 Richard Frith-Macdonald * Source/NSXMLParser.m: Fix retain/release error. diff --git a/Source/NSEnumerator.m b/Source/NSEnumerator.m index e14d4e7ec..de7a23eac 100644 --- a/Source/NSEnumerator.m +++ b/Source/NSEnumerator.m @@ -37,7 +37,9 @@ @implementation NSEnumerator /** - * Returns all objects remaining in the enumeration as an array. + * Returns all objects remaining in the enumeration as an array.
+ * Calling this method 'exhausts' the enumerator, leaving it at the + * end of the collection being enumerated. */ - (NSArray*) allObjects {