Technically, the syntax of array[index] allows the -objectAtIndexedSubscript: method to be called in an array. For NSArray this is documented as identical to -objectAtIndex:
The signature mechanism can be extended to other classes (including your own). Theoretically, such a class could do something different for -objectAtIndexedSubscript: than for -objectAtIndex: but that would be a bad design.
source share