I can create an NSArray that contains all the hash values of the objects in myArray like this:
NSArray *a = [myArray valueForKey:@"hash"];
What key do I pass to valueForKey: to get an array containing myArray’s indices?
Say myArray has n items. I’d like to do something like this:
NSArray *a = [myArray valueForKey:@"index"];
1 Answer