Class Methods | List of all members
NSEnumerator(GRXUtil) Category Reference

#import <NSEnumerator+GRXUtil.h>

Class Methods

(NSEnumerator *) + grx_enumeratorWithContainer:
 
(NSEnumerator *) + grx_enumeratorWithSingleValue:
 
(NSEnumerator *) + grx_enumeratorWithValueSupplier:
 

Detailed Description

Definition at line 21 of file NSEnumerator+GRXUtil.h.

Method Documentation

◆ grx_enumeratorWithContainer:

+ (NSEnumerator *) grx_enumeratorWithContainer: (id< NSFastEnumeration >)  container

Returns a NSEnumerator instance that iterates through the elements of the passed container that supports fast enumeration. Note that this negates the speed benefits of fast enumeration over NSEnumerator. It's only intended for the rare cases when one needs the latter and only has the former, e.g. for iteration that needs to be paused and resumed later.

◆ grx_enumeratorWithSingleValue:

+ (NSEnumerator *) grx_enumeratorWithSingleValue: (id value

Returns a NSEnumerator instance that provides a single object before finishing. The value is then released.

◆ grx_enumeratorWithValueSupplier:

+ (NSEnumerator *) grx_enumeratorWithValueSupplier: (id(^)(void))  block

Returns a NSEnumerator instance that delegates the invocations of nextObject to the passed block. When the block first returns nil, it is released.


The documentation for this category was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:47