I have an NSMutableOrderedSet.
I need to enumerate it, and it looks like the only options built onto the set are block based. So picking the simplest of the block based options, I have something like this...
[anNSMutableOrderedSet enumerateObjectsUsingBlock:^(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
if ([(SomeClass*)obj isWhatIWant]) {
*stop = YES;
// Ok, found what I'm looking for, but how do I get it out to the rest of the code?
}
}]