Skip to content

Instantly share code, notes, and snippets.

@joshaber
Created September 22, 2011 23:30
Show Gist options
  • Save joshaber/1236345 to your computer and use it in GitHub Desktop.
Save joshaber/1236345 to your computer and use it in GitHub Desktop.
NSIndexSet *matches = [self.elements indexesOfObjectsWithOptions:NSEnumerationConcurrent
passingTest:(BOOL ^(ChiroXMLElement *element, NSUInteger index, BOOL *stop){
return (BOOL)([name compare:element.tag options:options] == NSOrderedSame);
})
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment