I'm trying to cast an object in an NSArray
; the below loop clearly explains what I'm trying to achieve, but can I do it without a loop?
NSArray* inputs = [star activeStars];
for (Galaxy* object in inputs) {
HBLogDebug(@"%@",object.name);
}
So I could perform searching in one line like below:
int foundInt = [inputs indexOfObject:@"somestar"];