Replaced a usage of NSEnumerator with a enumeratorObjectsUsingBlock: