small auto-import change

This commit is contained in:
Mitchell Livingston 2006-10-16 02:47:10 +00:00
parent 3bac536bc2
commit fcbd87177e
1 changed files with 3 additions and 1 deletions

View File

@ -364,6 +364,8 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
fSpeedLimitTimer = [NSTimer scheduledTimerWithTimeInterval: AUTO_SPEED_LIMIT_SECONDS target: self
selector: @selector(autoSpeedLimit:) userInfo: nil repeats: YES];
//auto importing
fAutoImportedNames = [[NSMutableArray alloc] init];
[self checkAutoImportDirectory];
}
@ -1582,7 +1584,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
//only import those that have not been imported yet
NSMutableArray * newNames = [importedNames mutableCopy];
[newNames removeObjectsInArray: fAutoImportedNames];
[fAutoImportedNames addObjectsFromArray: newNames];
[fAutoImportedNames setArray: importedNames];
NSEnumerator * enumerator = [newNames objectEnumerator];
NSString * file;