Refactor app list to be non-static and sorted in alphabetical order

This commit is contained in:
Cameron Gutman committed 2015-07-11 01:28:52 -07:00
1 parent 4c95773131
commit 13e894e9a3
5 files changed
+31 -19

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@
@interface AppAssetManager : NSObject
- (id) initWithCallback:(id<AppAssetCallback>)callback;
- (void) retrieveAssets:(NSArray*)appList fromHost:(Host*)host;
- (void) retrieveAssetsFromHost:(Host*)host;
- (void) stopRetrieving;
@end
+2 -2
View File
@@ -28,8 +28,8 @@ static const int MAX_REQUEST_COUNT = 4;
return self;
}
- (void) retrieveAssets:(NSArray*)appList fromHost:(Host*)host {
for (App* app in appList) {
- (void) retrieveAssetsFromHost:(Host*)host {
for (App* app in host.appList) {
if (app.image == nil) {
AppAssetRetriever* retriever = [[AppAssetRetriever alloc] init];
retriever.app = app;