Last active
August 29, 2015 14:05
-
-
Save nevyn/b59e46c70a99b6f5fad5 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
- (void)_displayPendingReviews | |
{ | |
[[[[[NSFileManager defaultManager] | |
contentsOfDirectoryAtURL:GFSessionGroupsRoot() | |
includingPropertiesForKeys:nil | |
options:NSDirectoryEnumerationSkipsHiddenFiles | |
error:NULL | |
] gf_map:^id(NSURL *url) { | |
return [GFSessionGroup loadFromFileAtURL:url]; | |
}] gf_filter:^BOOL(GFSessionGroup *group) { | |
return ![group isFinished]; | |
}] gf_each:^(GFSessionGroup *group) { | |
[self _displayReviewUIForGroup:group.identifier]; | |
}]; | |
} |
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
- (void)_displayPendingReviews | |
{ | |
NSArray *urls = [[NSFileManager defaultManager] | |
contentsOfDirectoryAtURL:GFSessionGroupsRoot() | |
includingPropertiesForKeys:nil | |
options:NSDirectoryEnumerationSkipsHiddenFiles | |
error:NULL]; | |
for(NSURL *url in urls) { | |
GFSessionGroup *group = [GFSessionGroup loadFromFileAtURL:url]; | |
if([group isFinished]) | |
continue; | |
[self _displayReviewUIForGroup:group.identifier]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment