Created
April 25, 2013 05:13
-
-
Save chendo/5457645 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__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