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
2010-07-29 14:08:04 -07:00
committed by Ross Boucher
parent a7ca917abf
commit 3eea14abe4
+2 -2
View File
@@ -411,7 +411,7 @@ CPEnumerationReverse = 1 << 1;
*/
- (unsigned)indexOfObjectPassingTest:(Function)predicate
{
return [self indexOfObjectWithOptions:CPEnumerationNormal passingTest:predicate context:nil];
return [self indexOfObjectWithOptions:CPEnumerationNormal passingTest:predicate context:undefined];
}
/*!
@@ -443,7 +443,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];
}
/*!