Skip to content

Instantly share code, notes, and snippets.

@chendo
Created April 25, 2013 05:13
Show Gist options
  • Save chendo/5457645 to your computer and use it in GitHub Desktop.
Save chendo/5457645 to your computer and use it in GitHub Desktop.
__block NSMutableDictionary *elementHash = [[NSMutableDictionary alloc] initWithCapacity:filteredElements.count];
[filteredElements each:^(SCElementMatch *match) {
// Add hash here
elementHash[match.element] = @{@"label": @"foo"};
}];
DLog(@"ElementHash: %@", elementHash);
// Keys are all there, but most of the values are null, except for a few
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment