Search NSArray for string

I have an NSArray with multiple elements that each look like:


what I want to do is get the index for the string “name1” or whatever that happens to be, but reading the docs and trying to find examples elsewhere has been less than fruitful. I know I could just do it as a list of records and interate, but if there’s a better way to do it, I’d much rather do that.

I think there’s something about asking a question…figured out NSPredicate for this. Yay!