- Timestamp:
- 06/18/09 15:58:16 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
apps/iphone/superbook/trunk/Classes/LocateThem_AppDelegate.m
r363 r402 37 37 -(id)init { 38 38 if (self = [super init]) { 39 // Get rid of old sqlite data in /Documents directory. Now we store the data in /Library/Caches 40 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); 41 NSString *documentsDirectory = [paths objectAtIndex:0]; 42 NSDirectoryEnumerator *direnum = [[NSFileManager defaultManager] enumeratorAtPath:documentsDirectory]; 43 NSString *pname; 44 while (pname = [direnum nextObject]) { 45 if ([[pname pathExtension] isEqualToString:@"sqlite"]) { 46 [[NSFileManager defaultManager] removeItemAtPath:[documentsDirectory stringByAppendingPathComponent:pname] error:nil]; 47 } 48 } 49 39 50 //Notifications for tile requests. This code allows for a class to know when a tile is requested and retrieved 40 51 [[NSNotificationCenter defaultCenter] addObserver:self








