For the methods that don't have context: in their signature, the predicate will receive undefined in the context parameter instead of nil.

This commit is contained in:
Aparajita Fishman committed 2010-07-25 16:55:55 -04:00
1 parent abda2990ae
commit e0547483f6
1 file changed
+2 -2
+2 -2
View File
@@ -413,7 +413,7 @@ CPEnumerationReverse = 1 << 1;
*/
- (unsigned)indexOfObjectPassingTest:(Function)predicate
{
return [self indexOfObjectWithOptions:CPEnumerationNormal passingTest:predicate context:nil];
return [self indexOfObjectWithOptions:CPEnumerationNormal passingTest:predicate context:undefined];
}
/*!
@@ -445,7 +445,7 @@ CPEnumerationReverse = 1 << 1;
*/
- (unsigned)indexOfObjectWithOptions:(CPEnumerationOptions)opts passingTest:(Function)predicate
{
return [self indexOfObjectWithOptions:opts passingTest:predicate context:nil];
return [self indexOfObjectWithOptions:opts passingTest:predicate context:undefined];
}
/*!