31- (id) initWithEnumerator:(NSEnumerator *)enumerator
32 excludingObject:(
id)object
34 if ((
self = [super init]))
46 [_enumerator release];
47 [_excludeObject release];
53+ (id) enumeratorWithEnumerator:(NSEnumerator *)enumerator
54 excludingObject:(
id)object
56 if (
object ==
nil)
return enumerator;
57 if (enumerator ==
nil)
return nil;
59 return [[[
self alloc] initWithEnumerator:enumerator excludingObject:object] autorelease];
68 result = [_enumerator nextObject];
77@implementation NSEnumerator (OOExcludingObject)
79- (id) ooExcludingObject:(
id)object
NSEnumerator * _enumerator
id enumeratorWithEnumerator:excludingObject:(NSEnumerator *enumerator,[excludingObject] id object)