Skip to content

Commit

Permalink
Minor fixes for iOS & OSX sample apps
Browse files Browse the repository at this point in the history
Signed-off-by: Isaac Tewolde <[email protected]>
Isaac Tewolde committed Jul 27, 2011

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 05e620e commit 537aedb
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SampleApp.OSX/CityDB/CityDBDelegate.m
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ -(void)importCountriesWithProgressBlock:(void(^)(NSDictionary *country, BOOL *st
}
}
}];
[geonamesDB syncDB];
[geonamesDB optimizeIndexes:nil];
[reader release];
}
-(void)importCitiesWithProgressBlock:(void(^)(NSDictionary *city, BOOL *stop, float progress))block{
2 changes: 1 addition & 1 deletion SampleApp.OSX/SampleApp_OSXAppDelegate.m
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ -(void)applicationDidFinishLaunching:(NSNotification *)aNotification{
[cityDBDelegate.geonamesDB doSearchWithProcessingBlock:^BOOL(id row) {
[cityArrayController addObject:row];
return NO;
} withLimit:50 andOffset:0 forRowTypes:@"city", nil];
} withLimit:1000 andOffset:0 forRowTypes:@"city", nil];
[cityArrayController rearrangeObjects];

[countryArrayController addObserver: self
1 change: 0 additions & 1 deletion src/TSDBManager.h
Original file line number Diff line number Diff line change
@@ -32,7 +32,6 @@


@interface TSDBManager : NSObject {
NSHashTable *dbs;
}
+(TSDBManager *)sharedDBManager;
+(NSString *)getDBError:(int)ecode;

0 comments on commit 537aedb

Please sign in to comment.