Show
Ignore:
Timestamp:
04/19/09 17:42:09 (3 years ago)
Author:
gbooker
Message:

Use a separate thread for rescanning a directory and send changes back to main thread. Tricky, but it works.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/CoreData/SapphireFrappliance/FRAppliance/main_helper.m

    r802 r820  
    2424 
    2525@interface NSObject (SapphireApplianceControllerAPI) 
    26 - (NSManagedObjectContext *)newManagedObjectContextForFile:(NSString *)storeFile options:(NSDictionary *)storeOptions; 
     26+ (NSManagedObjectContext *)newManagedObjectContextForFile:(NSString *)storeFile; 
    2727@end 
    2828 
     
    5656         
    5757        NSDictionary *storeOptions = [[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithBool:YES], NSReadOnlyPersistentStoreOption, nil]; 
    58         NSManagedObjectContext *moc = [NSClassFromString(@"SapphireApplianceController") newManagedObjectContextForFile:nil options:storeOptions]; 
     58        NSManagedObjectContext *moc = [NSClassFromString(@"SapphireApplianceController") newManagedObjectContextForFile:nil]; 
    5959        [storeOptions release]; 
    6060        if(moc == nil)