That is the solution I use at the moment. I was only wondering if
someone maybe found a way to extend NSEnumerator with a new method
to peek which would make following code possible.
As JCR already pointed out, enumerators may enumerate unordered
objects, so what you're trying to do is impossible with NSEnumerator.
You could, however, write your own enumerator class that has such a
method, and add an NSArray category to return an instance of your
custom enumerator for the array.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden