bad nslog!

This commit is contained in:
Mitchell Livingston 2006-07-07 21:59:21 +00:00
parent b252a98c13
commit 8c8993ce97
1 changed files with 2 additions and 2 deletions

View File

@ -1149,11 +1149,11 @@ static void sleepCallBack(void * controller, io_service_t y,
NSString * path = [[fDefaults stringForKey: @"AutoImportDirectory"] stringByExpandingTildeInPath]; NSString * path = [[fDefaults stringForKey: @"AutoImportDirectory"] stringByExpandingTildeInPath];
//if folder cannot be found or the contents hasn't changed simply give up //if folder cannot be found or the contents hasn't changed simply give up
NSArray * allFileNames;NSLog(@"first"); NSArray * allFileNames;
if (!(allFileNames = [[NSFileManager defaultManager] directoryContentsAtPath: path]) if (!(allFileNames = [[NSFileManager defaultManager] directoryContentsAtPath: path])
|| [allFileNames isEqualToArray: fAutoImportedNames]) || [allFileNames isEqualToArray: fAutoImportedNames])
return; return;
NSLog(@"here!");
//try to add files that haven't already been added //try to add files that haven't already been added
NSMutableArray * newFileNames = [NSMutableArray arrayWithArray: allFileNames]; NSMutableArray * newFileNames = [NSMutableArray arrayWithArray: allFileNames];
[newFileNames removeObjectsInArray: fAutoImportedNames]; [newFileNames removeObjectsInArray: fAutoImportedNames];