aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-11-16 22:05:34 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-11-16 22:05:34 +0000
commitcc6fc10bc9d001abb200449d311e8f8b8e176647 (patch)
tree05c1d1ccedc706c020321a4c622c2dcab1fc01a0
parentcd70708c55a7eb471acca8993b5494c347a03ac1 (diff)
[Author: oster]
Update comments. DELTA=6 (0 added, 0 deleted, 6 changed) R=dmaclach,thomasvl
-rw-r--r--Foundation/GTMNSEnumerator+Filter.m44
1 files changed, 22 insertions, 22 deletions
diff --git a/Foundation/GTMNSEnumerator+Filter.m b/Foundation/GTMNSEnumerator+Filter.m
index d923247..cc1cb41 100644
--- a/Foundation/GTMNSEnumerator+Filter.m
+++ b/Foundation/GTMNSEnumerator+Filter.m
@@ -6,9 +6,9 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the License at
-//
+//
// http://www.apache.org/licenses/LICENSE-2.0
-//
+//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -77,7 +77,7 @@
for (id obj = [base_ nextObject]; obj; obj = [base_ nextObject]) {
id result = nil;
if ([self filterObject:obj returning:&result]) {
- return result;
+ return result;
}
}
return nil;
@@ -100,8 +100,8 @@
@end
@implementation GTMEnumeratorTargetTransformer
- (BOOL)filterObject:(id)obj returning:(id *)resultp {
- *resultp = [target_ performSelector:operation_
- withObject:obj
+ *resultp = [target_ performSelector:operation_
+ withObject:obj
withObject:object_];
return nil != *resultp;
}
@@ -111,10 +111,10 @@
@interface GTMEnumeratorFilter : GTMEnumeratorPrivateBase
@end
@implementation GTMEnumeratorFilter
-// We must take care here, since Intel leaves junk in high bytes of return register
-// for predicates that return BOOL.
-// For details see:
-// http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/universal_binary_tips/chapter_5_section_23.html
+// We must take care here, since Intel leaves junk in high bytes of return
+// register for predicates that return BOOL.
+// For details see:
+// http://developer.apple.com/legacy/mac/library/documentation/MacOSX/Conceptual/universal_binary/universal_binary_tips/universal_binary_tips.html#//apple_ref/doc/uid/TP40002217-CH239-280661
// and
// http://www.red-sweater.com/blog/320/abusing-objective-c-with-class#comment-83187
- (BOOL)filterObject:(id)obj returning:(id *)resultp {
@@ -128,10 +128,10 @@
@interface GTMEnumeratorTargetFilter : GTMEnumeratorPrivateBase
@end
@implementation GTMEnumeratorTargetFilter
-// We must take care here, since Intel leaves junk in high bytes of return register
-// for predicates that return BOOL.
-// For details see:
-// http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/universal_binary_tips/chapter_5_section_23.html
+// We must take care here, since Intel leaves junk in high bytes of return
+// register for predicates that return BOOL.
+// For details see:
+// http://developer.apple.com/legacy/mac/library/documentation/MacOSX/Conceptual/universal_binary/universal_binary_tips/universal_binary_tips.html#//apple_ref/doc/uid/TP40002217-CH239-280661
// and
// http://www.red-sweater.com/blog/320/abusing-objective-c-with-class#comment-83187
- (BOOL)filterObject:(id)obj returning:(id *)resultp {
@@ -166,9 +166,9 @@
@encode(BOOL),
@encode(id),
NULL);
- return [[[GTMEnumeratorTargetFilter alloc] initWithBase:self
- sel:predicate
- target:target
+ return [[[GTMEnumeratorTargetFilter alloc] initWithBase:self
+ sel:predicate
+ target:target
object:nil] autorelease];
}
@@ -181,9 +181,9 @@
@encode(id),
@encode(id),
NULL);
- return [[[GTMEnumeratorTargetFilter alloc] initWithBase:self
- sel:predicate
- target:target
+ return [[[GTMEnumeratorTargetFilter alloc] initWithBase:self
+ sel:predicate
+ target:target
object:object] autorelease];
}
@@ -197,12 +197,12 @@
return [[[GTMEnumeratorTargetTransformer alloc] initWithBase:self
sel:selector
target:target
- object:nil]
+ object:nil]
autorelease];
}
- (NSEnumerator *)gtm_enumeratorByTarget:(id)target
- performOnEachSelector:(SEL)selector
+ performOnEachSelector:(SEL)selector
withObject:(id)object {
// make sure the object impls this selector taking an object as an arg.
GTMAssertSelectorNilOrImplementedWithReturnTypeAndArguments(target, selector,
@@ -213,7 +213,7 @@
return [[[GTMEnumeratorTargetTransformer alloc] initWithBase:self
sel:selector
target:target
- object:object]
+ object:object]
autorelease];
}