Fix remaining failing tests and add indexOfObject:inSortedRange:options:usingComparator:, and removed non-standard methods:

- indexOfObject:sortedBySelector:
- indexOfObject:sortedByFunction:
- indexOfObject:sortedByDescriptors:
- indexOfObject:sortedByFunction:context:

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2010-12-25 21:10:32 -08:00
parent f79c2346a5
commit e45ed19dc7
7 changed files with 113 additions and 182 deletions
+1 -2
View File
@@ -101,8 +101,7 @@
- (id)objectAtIndex:(CPUInteger)anIndex
{
if (anIndex >= self.length || anIndex < 0)
[CPException raise:CPRangeException
reason:@"index (" + anIndex + @") beyond bounds (" + self.length + @")"];
_CPRaiseRangeException(self, _cmd, anIndex, self.length);
return self[anIndex];
}